1+ /* Readium CSS
2+ WebPubZoom pref
3+
4+ A submodule managing zoom for user settings in Web Publications
5+ Part of “User Overrides” class – no flag required.
6+
7+ Repo: https://github.com/readium/css */
8+
9+ : root : not (: --iOS-patch )[style *= "--USER__zoom" ] body {
10+ zoom : var (--USER__zoom ) !important ;
11+ }
12+
13+ : root : --iOS-patch [style *= "--USER__zoom" ] body {
14+ -webkit-text-size-adjust : var (--USER__zoom ) !important ;
15+ }
16+
17+ @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 {
31+ zoom : calc (100% / var (--USER__zoom )) !important ;
32+ }
33+
34+ : root [style *= "--USER__zoom" ] figcaption ,
35+ : root [style *= "--USER__zoom" ] caption ,
36+ : root [style *= "--USER__zoom" ] td ,
37+ : root [style *= "--USER__zoom" ] th {
38+ zoom : var (--USER__zoom ) !important ;
39+ }
40+ }
41+
42+ /* We do not have a fallback implementation yet… */
0 commit comments