You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the crux of issue #19 about vertical-writing so I decided to open a more specific issue.
To put things simply, a lot of stylesheets won’t ship with all the necessary prefixed and/or unprefixed properties, especially the -epub-props, which can create quite a visible issue with writing-mode, and some others as well.
A radical solution would be to avoid treating such issues "on the fly", but as a "repair" action activated by the user himself. Because after all, the culprit is the missing standard CSS property, and this should be solved once for all in the EPUB file.
To do this, we would have to a/ developer a "repair" (or "cleaning") lib b/ offer it as a command line tool and/or c/ plug it into the Readium test apps in some way.
I really can’t see any other way than preprocessing stylesheets to add the missing properties, to be honest, since unsupported properties can’t be retrieved using getComputedStyle.
This primarily impacts Gecko/Quantum and Trident/EdgeHTML so we’re talking about web apps there, although some developers could decide to use the native Windows WebView – also heard about an Electron-like framework built on top of Quantum but I can’t find any info about that right now.
The text was updated successfully, but these errors were encountered:
This is the crux of issue #19 about vertical-writing so I decided to open a more specific issue.
To put things simply, a lot of stylesheets won’t ship with all the necessary prefixed and/or unprefixed properties, especially the
-epub-props
, which can create quite a visible issue withwriting-mode
, and some others as well.In the alpha version of ReadiumCSS, we’re enforcing
writing-mode
when needed, based on a chain of educated guesses (language of the publication,page-progression-direction
, etc.) but that’s at the document:root
level, and doesn’t take children into account.And there’s a lot more:
text-emphasis
text-orientation
text-combine-upright
word-break
line-break
hyphens
text-transform
See this mappings table in this PostCSS plugin (which is a proof of concept).
From Laurent:
I really can’t see any other way than preprocessing stylesheets to add the missing properties, to be honest, since unsupported properties can’t be retrieved using
getComputedStyle
.This primarily impacts Gecko/Quantum and Trident/EdgeHTML so we’re talking about web apps there, although some developers could decide to use the native Windows WebView – also heard about an Electron-like framework built on top of Quantum but I can’t find any info about that right now.
The text was updated successfully, but these errors were encountered: