diff options
Diffstat (limited to 'tests/typ/layout')
| -rw-r--r-- | tests/typ/layout/block-sizing.typ | 16 | ||||
| -rw-r--r-- | tests/typ/layout/container-fill.typ | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/tests/typ/layout/block-sizing.typ b/tests/typ/layout/block-sizing.typ new file mode 100644 index 00000000..a768c3e3 --- /dev/null +++ b/tests/typ/layout/block-sizing.typ @@ -0,0 +1,16 @@ +// Test blocks with fixed height. + +--- +#set page(height: 100pt) +#set align(center) + +#lorem(10) +#block(width: 80%, height: 60pt, fill: aqua) +#lorem(6) +#block( + breakable: false, + width: 100%, + inset: 4pt, + fill: aqua, + lorem(8) + colbreak(), +) diff --git a/tests/typ/layout/container-fill.typ b/tests/typ/layout/container-fill.typ index ab5913ab..34849d88 100644 --- a/tests/typ/layout/container-fill.typ +++ b/tests/typ/layout/container-fill.typ @@ -1,6 +1,6 @@ #set page(height: 100pt) #let words = lorem(18).split() -#block(inset: 8pt, fill: aqua, stroke: aqua.darken(30%))[ +#block(inset: 8pt, width: 100%, fill: aqua, stroke: aqua.darken(30%))[ #words.slice(0, 12).join(" ") #box(fill: teal, outset: 2pt)[incididunt] #words.slice(12).join(" ") |
