Quote:
Originally Posted by Falkor
Right, for backwards compatibility one would at least have to offer alternatives for all the heights in vh.
The simplest way would be not to provide any fallback at all because it just doesn't work that well in epub2 (and even epub3 without support for initial-letter). So I'd use
Code:
@supports (initial-letter: 2) {…}
around the entire rule. Technically that's not supported by epub2 either, but as invalid rules must be ignored, it still does the trick.
This will also eliminate problems with renderers that support :first-letter, but not initial letter.
If you must have drop caps in epub2 as well, I guess you could still add spans and style them. Then you'd have to undo the span’s styling for all renderers that support initial-letter.
|
Doesn't the @supports include an if/then/else format?? That gives you the css to set if it doesn't support the selector.