Skip to content

Commit 03471d1

Browse files
committed
Protect font variations from a11y normalize
Since font variations are targeting body, we have to filter it out when using *
1 parent c24221b commit 03471d1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

css/src/modules/user-settings-submodules/ReadiumCSS-a11yFont_pref.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@
2727
}
2828

2929
/* Targeting everything except code. Note that Open Dyslexic has a monospaced font for code */
30-
:root:--a11y-font *:not(code):not(var):not(kbd):not(samp),
31-
:root:--a11y-normalize *:not(code):not(var):not(kbd):not(samp) {
30+
:root:--a11y-font body *:not(code):not(var):not(kbd):not(samp),
31+
:root:--a11y-normalize body *:not(code):not(var):not(kbd):not(samp) {
3232
font-family: inherit !important;
3333
font-weight: inherit !important;
3434
font-style: inherit !important;
3535
}
3636

3737
/* Normalizing text-decoration, subs and sups */
38-
:root:--a11y-font *,
39-
:root:--a11y-normalize * {
38+
:root:--a11y-font body *,
39+
:root:--a11y-normalize body * {
4040
text-decoration: none !important;
4141
font-variant-caps: normal !important;
4242
font-variant-position: normal !important;

0 commit comments

Comments
 (0)