Skip to content

Conversation

@mickael-menu
Copy link
Member

Fix a discrepancy where the Readium CSS variables were initially injected (in Kotlin) without !important, but updated (in JavaScript) with it. This triggered an issue on some devices (e-ink tablet) where the fontWeight EPUB preference was ignored when restored.

Note: !important is injected for all variables instead of explicitly in each value, because the JavaScript setProperty() API ignores any !important annotation in a property value.

@mickael-menu mickael-menu requested a review from qnga February 2, 2023 13:00
@mickael-menu mickael-menu added this pull request to the merge queue Feb 20, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 20, 2023
@mickael-menu mickael-menu added this pull request to the merge queue Feb 20, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 20, 2023
@mickael-menu mickael-menu merged commit 2fa3d11 into develop Feb 20, 2023
@mickael-menu mickael-menu deleted the fix-css-important branch February 20, 2023 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants