Quote:
Originally Posted by Toxaris
There are CSS attributes for firstline but those are ignored by most readers and they are not in the format specifications of the ePUB format.
|
The spec says:
Reading Systems
must support all CSS2 selectors, including pseudo-elements and pseudo-classes
and this includes :first-letter and :first-line, so they are in the ePub spec, which doesn't mean they are supported by popular readers
What is
not supported is the text-transform property that one would like to use in this case. What I'd do is choose one of:
1) Use :first-line and text-transform regardless of their support status. It's not grave if they don't work now, it's a purely aesthetic formatting that doesn't add anything significant. In some future they'll work, or they'll be easily converted to something that works.
2) Hardcode as uppercase letters (or as smallcaps)
only the first word (or the first two words, if the first one is one-letter). This doesn't change when the font size or text width are changed, and doesn't look wrong.