summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.adoc1
-rw-r--r--data/stylesheets/asciidoctor-default.css2
-rw-r--r--src/stylesheets/asciidoctor.css8
3 files changed, 6 insertions, 5 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc
index a0773d9e..de221157 100644
--- a/CHANGELOG.adoc
+++ b/CHANGELOG.adoc
@@ -25,6 +25,7 @@ Bug Fixes::
* Hide built-in marker on HTML summary element in Safari when using default stylesheet (#4162)
* Hide outline around HTML summary when activated in Safari (#4162)
* Include primary video in value of `playlist` attribute when embeddding YouTube video (#4156)
+ * Honor stripes=none on nested table (#4165)
Improvements::
diff --git a/data/stylesheets/asciidoctor-default.css b/data/stylesheets/asciidoctor-default.css
index c17fd469..2708c196 100644
--- a/data/stylesheets/asciidoctor-default.css
+++ b/data/stylesheets/asciidoctor-default.css
@@ -264,7 +264,7 @@ table.frame-none>colgroup+*>:first-child>*,table.frame-sides>colgroup+*>:first-c
table.frame-none>:last-child>:last-child>*,table.frame-sides>:last-child>:last-child>*{border-bottom-width:0}
table.frame-none>*>tr>:first-child,table.frame-ends>*>tr>:first-child{border-left-width:0}
table.frame-none>*>tr>:last-child,table.frame-ends>*>tr>:last-child{border-right-width:0}
-table.stripes-all tr,table.stripes-odd tr:nth-of-type(odd),table.stripes-even tr:nth-of-type(even),table.stripes-hover tr:hover{background:#f8f8f7}
+table.stripes-all>*>tr,table.stripes-odd>*>tr:nth-of-type(odd),table.stripes-even>*>tr:nth-of-type(even),table.stripes-hover>*>tr:hover{background:#f8f8f7}
th.halign-left,td.halign-left{text-align:left}
th.halign-right,td.halign-right{text-align:right}
th.halign-center,td.halign-center{text-align:center}
diff --git a/src/stylesheets/asciidoctor.css b/src/stylesheets/asciidoctor.css
index 247a9c28..978f7b25 100644
--- a/src/stylesheets/asciidoctor.css
+++ b/src/stylesheets/asciidoctor.css
@@ -1622,10 +1622,10 @@ table.frame-ends > * > tr > :last-child {
border-right-width: 0;
}
-table.stripes-all tr,
-table.stripes-odd tr:nth-of-type(odd),
-table.stripes-even tr:nth-of-type(even),
-table.stripes-hover tr:hover {
+table.stripes-all > * > tr,
+table.stripes-odd > * > tr:nth-of-type(odd),
+table.stripes-even > * > tr:nth-of-type(even),
+table.stripes-hover > * > tr:hover {
background: #f8f8f7;
}