summaryrefslogtreecommitdiff
path: root/tests/typ/layout/grid-stroke.typ
diff options
context:
space:
mode:
authorPgBiel <9021226+PgBiel@users.noreply.github.com>2024-03-03 16:32:27 -0300
committerGitHub <noreply@github.com>2024-03-03 19:32:27 +0000
commitdecb4fd9b98968dbaa89451ab6620b33819260a5 (patch)
treeea2b5c2dcefe85d9be57f28a3c103605b5178513 /tests/typ/layout/grid-stroke.typ
parent098ef5acbb91723c4c806b23e5e5d85523fc88aa (diff)
Merging cells: Rowspans [More Flexible Tables Pt.3b] (#3501)
Diffstat (limited to 'tests/typ/layout/grid-stroke.typ')
-rw-r--r--tests/typ/layout/grid-stroke.typ14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/typ/layout/grid-stroke.typ b/tests/typ/layout/grid-stroke.typ
index 51b810d9..9d01e1cd 100644
--- a/tests/typ/layout/grid-stroke.typ
+++ b/tests/typ/layout/grid-stroke.typ
@@ -275,6 +275,20 @@
)
---
+// Test partial border line overrides
+#set page(width: auto, height: 7em, margin: (bottom: 1em))
+#table(
+ columns: 4,
+ stroke: (x, y) => if y == 0 or y == 4 { orange } else { aqua },
+ table.hline(stroke: blue, start: 1, end: 2), table.cell(stroke: red, v(3em)), table.cell(stroke: blue)[b], table.cell(stroke: green)[c], [M],
+ [a], [b], [c], [M],
+ [d], [e], [f], [M],
+ [g], [h], [i], [M],
+ table.cell(stroke: red)[a], table.cell(stroke: blue)[b], table.cell(stroke: green)[c], [M],
+ table.hline(stroke: blue, start: 1, end: 2),
+)
+
+---
// Error: 8:3-8:32 cannot place horizontal line at the 'bottom' position of the bottom border (y = 2)
// Hint: 8:3-8:32 set the line's position to 'top' or place it at a smaller 'y' index
#table(