Skip to content

Commit ea339b7

Browse files
committed
Add flag for experimental header filtering
1 parent 9078601 commit ea339b7

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

css/ReadiumCSS-config.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@
5050
@custom-selector :--ipadOS-patch [style*="readium-iPadOSPatch-on"];
5151

5252
/* Experimental/Feature flags */
53-
@custom-selector :--experimental-zoom [style*="readium-experimentalZoom-on"];
53+
@custom-selector :--experimental-zoom [style*="readium-experimentalZoom-on"];
54+
@custom-selector :--experimental-header-filtering [style*="readium-experimentalHeaderFiltering-on"]

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
77
Repo: https://github.com/readium/css */
88

9-
:root[style*="--USER__paraIndent"] p:not([class*="title"]):not(blockquote p):not(figcaption p):not(header p):not(hgroup p):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)) {
9+
:root[style*="--USER__paraIndent"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
10+
:root[style*="--USER__paraIndent"]:--experimental-header-filtering p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)) {
1011
text-indent: var(--USER__paraIndent) !important;
1112
}
1213

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
}
1212

1313
:root[style*="--USER__textAlign"] body,
14-
:root[style*="--USER__textAlign"] p:not([class*="title"]):not(blockquote p):not(figcaption p):not(header p):not(hgroup p):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)),
14+
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
1515
:root[style*="--USER__textAlign"] li,
16-
:root[style*="--USER__textAlign"] dd {
16+
:root[style*="--USER__textAlign"] dd,
17+
:root[style*="--USER__textAlign"]:--experimental-header-filtering p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)) {
1718
text-align: var(--USER__textAlign) !important;
1819
-moz-text-align-last: auto !important;
1920
-epub-text-align-last: auto !important;

0 commit comments

Comments
 (0)