Describe the bug
Some Readium CSS variables have default values in px in case they're not set. This is the case, for instance, of --RS__defaultLineLength. As this property is translated into a CSS property whose values must be in the zoomed coordinated system, setting a --USER__fontSize different of 1 leads to inconsistent (and bad) effective values.
How to reproduce?
- Use the scroll mode.
- Do not set
--RS__defaultLineLength or --USER__lineLength so that the default value applies.
- Change
--USER__fontSize to 0.1. If your viewport is large enough, you'll see margins far bigger than with --USER__fontSize == 1 because line length is limited to 640px in the zoomed coordinate system instead of the original one.
Readium CSS version
2.0.0-beta.13
Platforms
Android
Browsers
Android System WebView
Additional context
No response
Describe the bug
Some Readium CSS variables have default values in px in case they're not set. This is the case, for instance, of
--RS__defaultLineLength. As this property is translated into a CSS property whose values must be in the zoomed coordinated system, setting a--USER__fontSizedifferent of 1 leads to inconsistent (and bad) effective values.How to reproduce?
--RS__defaultLineLengthor--USER__lineLengthso that the default value applies.--USER__fontSizeto 0.1. If your viewport is large enough, you'll see margins far bigger than with--USER__fontSize == 1because line length is limited to 640px in the zoomed coordinate system instead of the original one.Readium CSS version
2.0.0-beta.13
Platforms
Android
Browsers
Android System WebView
Additional context
No response