test: update rowspan tests

This commit is contained in:
Tobias Schmitz 2025-05-05 08:39:05 +02:00
parent a783e94daf
commit f38985bd9b
No known key found for this signature in database
5 changed files with 60 additions and 10 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 360 B

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 375 B

After

Width:  |  Height:  |  Size: 360 B

View File

@ -242,18 +242,18 @@
columns: (1fr, 1fr),
inset: 5pt,
align: center,
grid.cell(rowspan: 1, [
a: // should produce 1
grid.cell(rowspan: 5, [
b: // will produce 2
#test.step()
#context test.get().first()
]),
grid.cell(rowspan: 2, [
b: // should produce 2
a: // will produce 1
#test.step()
#context test.get().first()
]),
grid.cell(rowspan: 1, [
c: // should produce 3
grid.cell(rowspan: 3, [
c: // will produce 3
#test.step()
#context test.get().first()
]),
@ -268,18 +268,68 @@
inset: 5pt,
align: center,
grid.cell(rowspan: 2, [
a: // should produce 1
a: // will produce 1
#test.step()
#context test.get().first()
]),
grid.cell(rowspan: 1, [
b: // should produce 2
grid.cell(rowspan: 5, [
b: // will produce 2
#test.step()
#context test.get().first()
]),
grid.cell(rowspan: 1, [
d: // should produce 3
grid.cell(rowspan: 3, [
c: // will produce 3
#test.step()
#context test.get().first()
]),
)
--- grid-rtl-rowspan-counter-mixed-1 ---
// Test interaction between RTL and counters
#set text(dir: rtl)
#let test = counter("test")
#grid(
columns: (1fr, 1fr),
inset: 5pt,
align: center,
[
a: // will produce 1
#test.step()
#context test.get().first()
],
grid.cell(rowspan: 2, [
b: // will produce 2
#test.step()
#context test.get().first()
]),
[
c: // will produce 3
#test.step()
#context test.get().first()
],
)
--- grid-rtl-rowspan-counter-mixed-2 ---
// Test interaction between RTL and counters
#set text(dir: rtl)
#let test = counter("test")
#grid(
columns: (1fr, 1fr),
inset: 5pt,
align: center,
grid.cell(rowspan: 2, [
b: // will produce 2
#test.step()
#context test.get().first()
]),
[
a: // will produce 1
#test.step()
#context test.get().first()
],
[
c: // will produce 3
#test.step()
#context test.get().first()
]
)