Skip to content

Commit d1c168b

Browse files
committed
Remove too aggressive selector for zoom
Div is pretty much a no-go because it can be used to wrap the entire contents and then it is just too much filtering to do.
1 parent a098274 commit d1c168b

3 files changed

Lines changed: 1 addition & 13 deletions

File tree

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] figure:has(> canvas),
2222
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] figure:has(> iframe),
2323
: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),
3024
:root:not(:--deprecated-font-size):not(:--iOS-patch)[style*="--USER__fontSize"] table {
3125
zoom: calc(100% / var(--USER__fontSize)) !important;
3226
}

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
:root:not(:--iOS-patch)[style*="--USER__zoom"] figure:has(> canvas),
2222
:root:not(:--iOS-patch)[style*="--USER__zoom"] figure:has(> iframe),
2323
: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),
3024
:root:not(:--iOS-patch)[style*="--USER__zoom"] table {
3125
zoom: calc(100% / var(--USER__zoom)) !important;
3226
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@readium/css",
33
"description": "A set of reference stylesheets for EPUB Reading Systems",
4-
"version": "2.0.0-beta.22",
4+
"version": "2.0.0-beta.23",
55
"homepage": "https://github.com/readium/css",
66
"license": "BSD-3-Clause",
77
"keywords": [

0 commit comments

Comments
 (0)