|
1 | 1 | /*! |
2 | | - * Readium CSS v.2.0.0-beta.21 |
| 2 | + * Readium CSS v.2.0.0-beta.22 |
3 | 3 | * Copyright (c) 2017–2025. Readium Foundation. All rights reserved. |
4 | 4 | * Use of this source code is governed by a BSD-style license which is detailed in the |
5 | 5 | * LICENSE file present in the project repository where this source code is maintained. |
@@ -297,10 +297,36 @@ body{ |
297 | 297 | zoom:var(--USER__fontSize) !important; |
298 | 298 | } |
299 | 299 |
|
300 | | -:root[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{ |
| 300 | +:root:not([style*="readium-deprecatedFontSize-on"])[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{ |
301 | 301 | -webkit-text-size-adjust:var(--USER__fontSize) !important; |
302 | 302 | } |
303 | 303 |
|
| 304 | +@supports selector(figure:has(> img)){ |
| 305 | + |
| 306 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> img), |
| 307 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> video), |
| 308 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> svg), |
| 309 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> canvas), |
| 310 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> iframe), |
| 311 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> audio), |
| 312 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> img), |
| 313 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> video), |
| 314 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> svg), |
| 315 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> canvas), |
| 316 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> iframe), |
| 317 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> audio), |
| 318 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] table{ |
| 319 | + zoom:calc(100% / var(--USER__fontSize)) !important; |
| 320 | + } |
| 321 | + |
| 322 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figcaption, |
| 323 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] caption, |
| 324 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] td, |
| 325 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] th{ |
| 326 | + zoom:var(--USER__fontSize) !important; |
| 327 | + } |
| 328 | +} |
| 329 | + |
304 | 330 | @supports not (zoom: 1){ |
305 | 331 |
|
306 | 332 | :root[style*="--USER__fontSize"]{ |
@@ -366,6 +392,14 @@ body{ |
366 | 392 | font-variant:none; |
367 | 393 | } |
368 | 394 |
|
| 395 | +:root[style*="--USER__ligatures"]{ |
| 396 | + font-variant-ligatures:var(--USER__ligatures) !important; |
| 397 | +} |
| 398 | + |
| 399 | +:root[style*="--USER__ligatures"] *{ |
| 400 | + font-variant-ligatures:inherit !important; |
| 401 | +} |
| 402 | + |
369 | 403 | :root[style*="--USER__fontWeight"] body{ |
370 | 404 | font-weight:var(--USER__fontWeight) !important; |
371 | 405 | } |
|
0 commit comments