summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPgBiel <9021226+PgBiel@users.noreply.github.com>2025-02-23 08:26:14 -0300
committerGitHub <noreply@github.com>2025-02-23 11:26:14 +0000
commit240f238eee4d6dfce7e3c4cabb9315ad052ca230 (patch)
tree231771ef399964f28b267b2b0832bad274e0f5c9 /tests
parentd199546f9fe92b2d380dc337298fdca3e6fca8c8 (diff)
Fix HTML export of table with gutter (#5920)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/html/col-gutter-table.html26
-rw-r--r--tests/ref/html/col-row-gutter-table.html26
-rw-r--r--tests/ref/html/row-gutter-table.html26
-rw-r--r--tests/suite/layout/grid/html.typ27
4 files changed, 105 insertions, 0 deletions
diff --git a/tests/ref/html/col-gutter-table.html b/tests/ref/html/col-gutter-table.html
new file mode 100644
index 00000000..54170f53
--- /dev/null
+++ b/tests/ref/html/col-gutter-table.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <table>
+ <tr>
+ <td>a</td>
+ <td>b</td>
+ <td>c</td>
+ </tr>
+ <tr>
+ <td>d</td>
+ <td>e</td>
+ <td>f</td>
+ </tr>
+ <tr>
+ <td>g</td>
+ <td>h</td>
+ <td>i</td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/tests/ref/html/col-row-gutter-table.html b/tests/ref/html/col-row-gutter-table.html
new file mode 100644
index 00000000..54170f53
--- /dev/null
+++ b/tests/ref/html/col-row-gutter-table.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <table>
+ <tr>
+ <td>a</td>
+ <td>b</td>
+ <td>c</td>
+ </tr>
+ <tr>
+ <td>d</td>
+ <td>e</td>
+ <td>f</td>
+ </tr>
+ <tr>
+ <td>g</td>
+ <td>h</td>
+ <td>i</td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/tests/ref/html/row-gutter-table.html b/tests/ref/html/row-gutter-table.html
new file mode 100644
index 00000000..54170f53
--- /dev/null
+++ b/tests/ref/html/row-gutter-table.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <table>
+ <tr>
+ <td>a</td>
+ <td>b</td>
+ <td>c</td>
+ </tr>
+ <tr>
+ <td>d</td>
+ <td>e</td>
+ <td>f</td>
+ </tr>
+ <tr>
+ <td>g</td>
+ <td>h</td>
+ <td>i</td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/tests/suite/layout/grid/html.typ b/tests/suite/layout/grid/html.typ
index 2a7dfc2c..10345cb0 100644
--- a/tests/suite/layout/grid/html.typ
+++ b/tests/suite/layout/grid/html.typ
@@ -30,3 +30,30 @@
[row],
),
)
+
+--- col-gutter-table html ---
+#table(
+ columns: 3,
+ column-gutter: 3pt,
+ [a], [b], [c],
+ [d], [e], [f],
+ [g], [h], [i]
+)
+
+--- row-gutter-table html ---
+#table(
+ columns: 3,
+ row-gutter: 3pt,
+ [a], [b], [c],
+ [d], [e], [f],
+ [g], [h], [i]
+)
+
+--- col-row-gutter-table html ---
+#table(
+ columns: 3,
+ gutter: 3pt,
+ [a], [b], [c],
+ [d], [e], [f],
+ [g], [h], [i]
+)