Skip to content

Commit ebe37ed

Browse files
committed
Correct selector for indent + align
Selectors do not combine when filtering out.
1 parent 4723bdf commit ebe37ed

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

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

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

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)) {
9+
:root[style*="--USER__paraIndent"] p:not(
10+
blockquote p,
11+
figcaption p,
12+
header p,
13+
hgroup p,
14+
:root:--experimental-header-filtering p[class*="title"],
15+
:root:--experimental-header-filtering div:has(+ *) > h1 + p,
16+
:root:--experimental-header-filtering div:has(+ *) > p:has(+ h1)
17+
) {
1118
text-indent: var(--USER__paraIndent) !important;
1219
}
1320

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

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

1313
:root[style*="--USER__textAlign"] body,
14-
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
14+
:root[style*="--USER__textAlign"] p:not(
15+
blockquote p,
16+
figcaption p,
17+
header p,
18+
hgroup p,
19+
:root:--experimental-header-filtering p[class*="title"],
20+
:root:--experimental-header-filtering div:has(+ *) > h1 + p,
21+
:root:--experimental-header-filtering div:has(+ *) > p:has(+ h1)
22+
),
1523
:root[style*="--USER__textAlign"] li,
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)) {
24+
:root[style*="--USER__textAlign"] dd {
1825
text-align: var(--USER__textAlign) !important;
1926
-moz-text-align-last: auto !important;
2027
-epub-text-align-last: auto !important;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@readium/css",
33
"description": "A set of reference stylesheets for EPUB Reading Systems",
4-
"version": "2.0.0-beta.23",
4+
"version": "2.0.0-beta.24",
55
"homepage": "https://github.com/readium/css",
66
"license": "BSD-3-Clause",
77
"keywords": [

0 commit comments

Comments
 (0)