readium / readium-css

🌈 A set of reference stylesheets for EPUB Reading Systems, starting with Readium Mobile
https://readium.org/readium-css/
BSD 3-Clause "New" or "Revised" License
90 stars 20 forks source link

Provide styles to normalize drop caps #41

Open JayPanoz opened 6 years ago

JayPanoz commented 6 years ago

This is part of the accessibility baseline, as defined by issue #18

We currently normalize everything but drop caps when the a11y flag is set, removing italics, superscripts, etc.

Drop caps are quite popular in ebooks (for some unknown reason 😛) and their implementation can vary greatly so we need to find some reliable way to normalize them e.g. if using p:first-letter, it won’t override span.dropcap so we need to go the extra mile, it’s impossible to override svg and img, etc.

This normalization is bound to fail with at least some implementations.