Skip to content

Commit 1f27f45

Browse files
committed
Update patch for iPadOS pseudo elements
1 parent b0d505b commit 1f27f45

5 files changed

Lines changed: 6 additions & 11 deletions

File tree

css/dist/ReadiumCSS-after.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ body{
647647
-webkit-text-zoom:normal;
648648
}
649649

650-
:root[style*="readium-iPadOSPatch-on"] *:first-line,
651-
:root[style*="readium-iPadOSPatch-on"] *:first-letter{
650+
:root[style*="readium-iPadOSPatch-on"] p:not(:has(b, cite, em, i, q, s, small, span, strong)):first-line{
652651
-webkit-text-zoom:normal;
653652
}

css/dist/cjk-horizontal/ReadiumCSS-after.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,6 @@ body{
557557
-webkit-text-zoom:normal;
558558
}
559559

560-
:root[style*="readium-iPadOSPatch-on"] *:first-line,
561-
:root[style*="readium-iPadOSPatch-on"] *:first-letter{
560+
:root[style*="readium-iPadOSPatch-on"] p:not(:has(b, cite, em, i, q, s, small, span, strong)):first-line{
562561
-webkit-text-zoom:normal;
563562
}

css/dist/cjk-vertical/ReadiumCSS-after.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ body{
545545
-webkit-text-zoom:normal;
546546
}
547547

548-
:root[style*="readium-iPadOSPatch-on"] *:first-line,
549-
:root[style*="readium-iPadOSPatch-on"] *:first-letter{
548+
:root[style*="readium-iPadOSPatch-on"] p:not(:has(b, cite, em, i, q, s, small, span, strong)):first-line{
550549
-webkit-text-zoom:normal;
551550
}

css/dist/rtl/ReadiumCSS-after.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,6 @@ body{
582582
-webkit-text-zoom:normal;
583583
}
584584

585-
:root[style*="readium-iPadOSPatch-on"] *:first-line,
586-
:root[style*="readium-iPadOSPatch-on"] *:first-letter{
585+
:root[style*="readium-iPadOSPatch-on"] p:not(:has(b, cite, em, i, q, s, small, span, strong)):first-line{
587586
-webkit-text-zoom:normal;
588587
}

css/src/modules/ReadiumCSS-iPadOS_patch.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@
7272
-webkit-text-zoom: normal;
7373
}
7474

75-
/* Sanitize pseudo elements */
75+
/* Sanitize first line pseudo element. We have to filter inline elements as they already have the right value */
7676

77-
:root:--ipadOS-patch *:first-line,
78-
:root:--ipadOS-patch *:first-letter {
77+
:root[style*=readium-iPadOSPatch-on] p:not(:has(b, cite, em, i, q, s, small, span, strong)):first-line {
7978
-webkit-text-zoom: normal;
8079
}

0 commit comments

Comments
 (0)