summaryrefslogtreecommitdiff
path: root/tests/suite
diff options
context:
space:
mode:
authorMichael Färber <01mf02@gmail.com>2025-01-23 13:08:48 +0100
committerGitHub <noreply@github.com>2025-01-23 12:08:48 +0000
commitdda486a412b31acbf767087c748a62ccc6b510b6 (patch)
tree5a4a8d8b9e901d6c61fcefa31061e54d74544ef6 /tests/suite
parent52ee33a275063369673d8802fb820db3825a661f (diff)
HTML tables (#5666)
Diffstat (limited to 'tests/suite')
-rw-r--r--tests/suite/layout/grid/html.typ32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/suite/layout/grid/html.typ b/tests/suite/layout/grid/html.typ
new file mode 100644
index 00000000..2a7dfc2c
--- /dev/null
+++ b/tests/suite/layout/grid/html.typ
@@ -0,0 +1,32 @@
+--- basic-table html ---
+#table(
+ columns: 3,
+ rows: 3,
+
+ table.header(
+ [The],
+ [first],
+ [and],
+ [the],
+ [second],
+ [row],
+ table.hline(stroke: red)
+ ),
+
+ table.cell(x: 1, rowspan: 2)[Baz],
+ [Foo],
+ [Bar],
+
+ [1],
+ // Baz spans into the next cell
+ [2],
+
+ table.cell(colspan: 2)[3],
+ [4],
+
+ table.footer(
+ [The],
+ [last],
+ [row],
+ ),
+)