View Single Post
Old 06-23-2025, 02:54 PM   #27
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,369
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by Falkor View Post
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.
Turtle91 is offline   Reply With Quote