Skip to content

Commit c70aa1f

Browse files
committed
Revert removing .table class from table in our test suites
This reverts part of commit dd6717f. The `.table` is set by quarto itself and its removal in html output is a sign that something has changed and it is not set correctly anymore. We restore original test to correctly fix this.
1 parent acddc3e commit c70aa1f

File tree

8 files changed

+12
-11
lines changed

8 files changed

+12
-11
lines changed

dev-docs/feature-format-matrix/qmd-files/raw-blocks/interpreted/pandoc-native/document.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ _quarto:
2525
html:
2626
ensureHtmlElements:
2727
-
28-
- 'table'
28+
- 'table.table'
2929
- []
3030
typst:
3131
ensureTypstFileRegexMatches:

src/resources/formats/html/_quarto-rules.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ tr.header > th > p:last-of-type {
227227
margin-bottom: 0px;
228228
}
229229

230-
table {
230+
table,
231+
table.table {
231232
margin-top: 0.5rem;
232233
margin-bottom: 0.5rem;
233234
}

src/resources/formats/revealjs/quarto.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ $panel-sidebar-padding: 0.5em;
669669

670670
// https://github.com/quarto-dev/quarto-cli/issues/3380
671671

672-
div.cell-output-display div.pagedtable-wrapper table {
672+
div.cell-output-display div.pagedtable-wrapper table.table {
673673
font-size: 0.6em;
674674
}
675675

tests/docs/smoke-all/2023/10/10/issue-7187-b.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ _quarto:
55
html:
66
ensureHtmlElements:
77
- []
8-
- ["div[data-html-table-processing]"]
8+
- ["table.table", "div[data-html-table-processing]"]
99
---
1010

1111
::: {html-table-processing="none"}

tests/docs/smoke-all/2023/10/10/issue-7187.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ _quarto:
66
html:
77
ensureHtmlElements:
88
- []
9-
- ["table[data-quarto-postprocess='true']"]
9+
- ["table.table"]
1010
---
1111

1212

tests/docs/smoke-all/crossrefs/float/html/html-knitr-table-captions-1.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ _quarto:
55
html:
66
ensureHtmlElements:
77
-
8-
- "figure.quarto-float-tbl div#tbl-cars figure.quarto-subfloat-tbl table"
8+
- "figure.quarto-float-tbl div#tbl-cars figure.quarto-subfloat-tbl table.table"
99
- "figure.quarto-float-tbl div#tbl-cars figure.quarto-subfloat-tbl figcaption.quarto-subfloat-caption"
10-
- "figure.quarto-float-tbl div#tbl-pressure figure.quarto-subfloat-tbl table"
10+
- "figure.quarto-float-tbl div#tbl-pressure figure.quarto-subfloat-tbl table.table"
1111
- "figure.quarto-float-tbl div#tbl-pressure figure.quarto-subfloat-tbl figcaption.quarto-subfloat-caption"
1212
- "div#tbl-tables > figure.quarto-float-tbl > figcaption.quarto-float-caption"
1313
- []

tests/docs/smoke-all/crossrefs/float/revealjs/revealjs-knitr-table-captions-1.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ title: Knitr Table Test
55
# revealjs:
66
# ensureHtmlElements:
77
# -
8-
# - "figure.quarto-float-tbl div#tbl-cars figure.quarto-float-tbl table"
8+
# - "figure.quarto-float-tbl div#tbl-cars figure.quarto-float-tbl table.table"
99
# - "figure.quarto-float-tbl div#tbl-cars figure.quarto-float-tbl figcaption.quarto-subfloat-caption"
10-
# - "figure.quarto-float-tbl div#tbl-pressure figure.quarto-float-tbl table"
10+
# - "figure.quarto-float-tbl div#tbl-pressure figure.quarto-float-tbl table.table"
1111
# - "figure.quarto-float-tbl div#tbl-pressure figure.quarto-float-tbl figcaption.quarto-subfloat-caption"
1212
# - "div#tbl-tables > figure.quarto-float-tbl > figcaption.quarto-float-caption"
1313
# - []

tests/docs/smoke-all/crossrefs/float/typst/typst-knitr-table-captions-1.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ format: typst
66
# html:
77
# ensureHtmlElements:
88
# -
9-
# - "figure.quarto-float-tbl div#tbl-cars figure.quarto-float-tbl table"
9+
# - "figure.quarto-float-tbl div#tbl-cars figure.quarto-float-tbl table.table"
1010
# - "figure.quarto-float-tbl div#tbl-cars figure.quarto-float-tbl figcaption.quarto-subfloat-caption"
11-
# - "figure.quarto-float-tbl div#tbl-pressure figure.quarto-float-tbl table"
11+
# - "figure.quarto-float-tbl div#tbl-pressure figure.quarto-float-tbl table.table"
1212
# - "figure.quarto-float-tbl div#tbl-pressure figure.quarto-float-tbl figcaption.quarto-subfloat-caption"
1313
# - "div#tbl-tables > figure.quarto-float-tbl > figcaption.quarto-float-caption"
1414
# - []

0 commit comments

Comments
 (0)