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
89 stars 20 forks source link

forcing "start" text alignment (left or right depending on document language) does not work with "inherit" #128

Open danielweck opened 11 months ago

danielweck commented 11 months ago

In Thorium (Chromium web browser engine) we need this ReadiumCSS patch for the left/right (or start) override of justified text:

https://github.com/readium/r2-navigator-js/commit/aaaddf51d2c58b4e8b61da6eb5a9dc9a361ca057

https://github.com/readium/readium-css/blob/583011453612e6f695056ab6c086a2c4f4cac9c0/css/src/modules/user-settings-submodules/ReadiumCSS-textAlign_pref.css#L9-L16

JayPanoz commented 2 months ago

This is probably a CSS declaration we can add in ReadiumCSS to make it easier for everyone.

With specs such as logical properties, values like start and end are meant to become more popular so that would future-proof ReadiumCSS a little bit.