-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
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__defaultLineLengthor--USER__lineLengthso that the default value applies. - Change
--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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels