|
1 | 1 | /*! |
2 | | - * Readium CSS v.2.0.0-beta.20 |
| 2 | + * Readium CSS v.2.0.0-beta.21 |
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. |
@@ -293,10 +293,36 @@ body{ |
293 | 293 | zoom:var(--USER__fontSize) !important; |
294 | 294 | } |
295 | 295 |
|
296 | | -:root[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{ |
| 296 | +:root:not([style*="readium-deprecatedFontSize-on"])[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{ |
297 | 297 | -webkit-text-size-adjust:var(--USER__fontSize) !important; |
298 | 298 | } |
299 | 299 |
|
| 300 | +@supports selector(figure:has(> img)){ |
| 301 | + |
| 302 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> img), |
| 303 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> video), |
| 304 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> svg), |
| 305 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> canvas), |
| 306 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> iframe), |
| 307 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> audio), |
| 308 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> img), |
| 309 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> video), |
| 310 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> svg), |
| 311 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> canvas), |
| 312 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> iframe), |
| 313 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> audio), |
| 314 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] table{ |
| 315 | + zoom:calc(100% / var(--USER__fontSize)) !important; |
| 316 | + } |
| 317 | + |
| 318 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figcaption, |
| 319 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] caption, |
| 320 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] td, |
| 321 | + :root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] th{ |
| 322 | + zoom:var(--USER__fontSize) !important; |
| 323 | + } |
| 324 | +} |
| 325 | + |
300 | 326 | @supports not (zoom: 1){ |
301 | 327 |
|
302 | 328 | :root[style*="--USER__fontSize"]{ |
@@ -362,6 +388,14 @@ body{ |
362 | 388 | font-variant:none; |
363 | 389 | } |
364 | 390 |
|
| 391 | +:root[style*="--USER__ligatures"]{ |
| 392 | + font-variant-ligatures:var(--USER__ligatures) !important; |
| 393 | +} |
| 394 | + |
| 395 | +:root[style*="--USER__ligatures"] *{ |
| 396 | + font-variant-ligatures:inherit !important; |
| 397 | +} |
| 398 | + |
365 | 399 | :root[style*="--USER__fontWeight"] body{ |
366 | 400 | font-weight:var(--USER__fontWeight) !important; |
367 | 401 | } |
|
0 commit comments