Skip to content

Commit e264e67

Browse files
committed
Correct font-size/zoom selectors
1 parent a671d76 commit e264e67

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@
1010
zoom: var(--USER__fontSize) !important;
1111
}
1212

13-
:root:--iOS-patch[style*="--USER__fontSize"] body {
13+
:root:not(:--deprecated-font-size):--iOS-patch[style*="--USER__fontSize"] body {
1414
-webkit-text-size-adjust: var(--USER__fontSize) !important;
1515
}
1616

1717
@supports selector(figure:has(> img)) {
18-
:root[style*="--USER__fontSize"] figure:has(> img),
19-
:root[style*="--USER__fontSize"] figure:has(> video),
20-
:root[style*="--USER__fontSize"] figure:has(> svg),
21-
:root[style*="--USER__fontSize"] figure:has(> canvas),
22-
:root[style*="--USER__fontSize"] figure:has(> iframe),
23-
:root[style*="--USER__fontSize"] figure:has(> audio),
24-
:root[style*="--USER__fontSize"] div:has(> img),
25-
:root[style*="--USER__fontSize"] div:has(> video),
26-
:root[style*="--USER__fontSize"] div:has(> svg),
27-
:root[style*="--USER__fontSize"] div:has(> canvas),
28-
:root[style*="--USER__fontSize"] div:has(> iframe),
29-
:root[style*="--USER__fontSize"] div:has(> audio),
30-
:root[style*="--USER__fontSize"] table {
18+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] figure:has(> img),
19+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] figure:has(> video),
20+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] figure:has(> svg),
21+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] figure:has(> canvas),
22+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] figure:has(> iframe),
23+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] figure:has(> audio),
24+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] div:has(> img),
25+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] div:has(> video),
26+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] div:has(> svg),
27+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] div:has(> canvas),
28+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] div:has(> iframe),
29+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] div:has(> audio),
30+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] table {
3131
zoom: calc(100% / var(--USER__fontSize)) !important;
3232
}
3333

34-
:root[style*="--USER__fontSize"] figcaption,
35-
:root[style*="--USER__fontSize"] caption,
36-
:root[style*="--USER__fontSize"] td,
37-
:root[style*="--USER__fontSize"] th {
34+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] figcaption,
35+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] caption,
36+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] td,
37+
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] th {
3838
zoom: var(--USER__fontSize) !important;
3939
}
4040
}

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@
1515
}
1616

1717
@supports selector(figure:has(> img)) {
18-
:root[style*="--USER__zoom"] figure:has(> img),
19-
:root[style*="--USER__zoom"] figure:has(> video),
20-
:root[style*="--USER__zoom"] figure:has(> svg),
21-
:root[style*="--USER__zoom"] figure:has(> canvas),
22-
:root[style*="--USER__zoom"] figure:has(> iframe),
23-
:root[style*="--USER__zoom"] figure:has(> audio),
24-
:root[style*="--USER__zoom"] div:has(> img),
25-
:root[style*="--USER__zoom"] div:has(> video),
26-
:root[style*="--USER__zoom"] div:has(> svg),
27-
:root[style*="--USER__zoom"] div:has(> canvas),
28-
:root[style*="--USER__zoom"] div:has(> iframe),
29-
:root[style*="--USER__zoom"] div:has(> audio),
30-
:root[style*="--USER__zoom"] table {
18+
:root:not(:--iOS-patch)[style*="--USER__zoom"] figure:has(> img),
19+
:root:not(:--iOS-patch)[style*="--USER__zoom"] figure:has(> video),
20+
:root:not(:--iOS-patch)[style*="--USER__zoom"] figure:has(> svg),
21+
:root:not(:--iOS-patch)[style*="--USER__zoom"] figure:has(> canvas),
22+
:root:not(:--iOS-patch)[style*="--USER__zoom"] figure:has(> iframe),
23+
:root:not(:--iOS-patch)[style*="--USER__zoom"] figure:has(> audio),
24+
:root:not(:--iOS-patch)[style*="--USER__zoom"] div:has(> img),
25+
:root:not(:--iOS-patch)[style*="--USER__zoom"] div:has(> video),
26+
:root:not(:--iOS-patch)[style*="--USER__zoom"] div:has(> svg),
27+
:root:not(:--iOS-patch)[style*="--USER__zoom"] div:has(> canvas),
28+
:root:not(:--iOS-patch)[style*="--USER__zoom"] div:has(> iframe),
29+
:root:not(:--iOS-patch)[style*="--USER__zoom"] div:has(> audio),
30+
:root:not(:--iOS-patch)[style*="--USER__zoom"] table {
3131
zoom: calc(100% / var(--USER__zoom)) !important;
3232
}
3333

34-
:root[style*="--USER__zoom"] figcaption,
35-
:root[style*="--USER__zoom"] caption,
36-
:root[style*="--USER__zoom"] td,
37-
:root[style*="--USER__zoom"] th {
34+
:root:not(:--iOS-patch)[style*="--USER__zoom"] figcaption,
35+
:root:not(:--iOS-patch)[style*="--USER__zoom"] caption,
36+
:root:not(:--iOS-patch)[style*="--USER__zoom"] td,
37+
:root:not(:--iOS-patch)[style*="--USER__zoom"] th {
3838
zoom: var(--USER__zoom) !important;
3939
}
4040
}

0 commit comments

Comments
 (0)