View Single Post
Old 08-05-2025, 11:01 PM   #12
ElMiko
Evangelist
ElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileReadElMiko has read every ebook posted at MobileRead
 
ElMiko's Avatar
 
Posts: 479
Karma: 65460
Join Date: Jun 2011
Device: Kindle
Fascinating. I didn't know about the @supports at-rule... I can see how that would be a real game changer.

EDIT: I've been rolling this around in my head for the last thirty minutes: Does your example above mean that—depending on the epub3 code you're trying to accommodate—the epub file might require having functionally the whole book duplicated inside so that it could toggle your at-rule? Or could you stack the two classes, and have the toggling still work as in:

Code:
<div class="epub3Code epub2Code">
   All the code for epub3 AND epub2 here...
</div>

Last edited by ElMiko; 08-05-2025 at 11:35 PM.
ElMiko is offline   Reply With Quote