summaryrefslogtreecommitdiff
path: root/tests/typ/layout
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/layout')
-rw-r--r--tests/typ/layout/grid-1.typ24
-rw-r--r--tests/typ/layout/grid-3.typ4
-rw-r--r--tests/typ/layout/grid-4.typ8
-rw-r--r--tests/typ/layout/stack-1.typ3
4 files changed, 19 insertions, 20 deletions
diff --git a/tests/typ/layout/grid-1.typ b/tests/typ/layout/grid-1.typ
index 23723712..afd01a5f 100644
--- a/tests/typ/layout/grid-1.typ
+++ b/tests/typ/layout/grid-1.typ
@@ -7,17 +7,17 @@
#grid(
columns: (auto, 1fr, 3fr, 0.25cm, 3%, 2mm + 10%),
cell(0.5cm, rgb("2a631a")),
- cell(100%, forest),
- cell(100%, conifer),
- cell(100%, rgb("ff0000")),
- cell(100%, rgb("00ff00")),
- cell(80%, rgb("00faf0")),
- cell(1cm, rgb("00ff00")),
+ cell(100%, forest),
+ cell(100%, conifer),
+ cell(100%, rgb("ff0000")),
+ cell(100%, rgb("00ff00")),
+ cell(80%, rgb("00faf0")),
+ cell(1cm, rgb("00ff00")),
cell(0.5cm, rgb("2a631a")),
- cell(100%, forest),
- cell(100%, conifer),
- cell(100%, rgb("ff0000")),
- cell(100%, rgb("00ff00")),
+ cell(100%, forest),
+ cell(100%, conifer),
+ cell(100%, rgb("ff0000")),
+ cell(100%, rgb("00ff00")),
)
#grid()
@@ -29,7 +29,7 @@
row-gutter: 1fr,
rect(fill: eastern)[dddaa aaa aaa],
rect(fill: conifer)[ccc],
- rect(width: 100%, fill: rgb("dddddd"))[aaa],
+ rect(fill: rgb("dddddd"))[aaa],
)
---
@@ -39,6 +39,6 @@
columns: (1fr,),
rows: (1fr, auto, 2fr),
[],
- box(width: 100%)[A bit more to the top],
+ [A bit more to the top],
[],
)
diff --git a/tests/typ/layout/grid-3.typ b/tests/typ/layout/grid-3.typ
index 42d2ce97..af971875 100644
--- a/tests/typ/layout/grid-3.typ
+++ b/tests/typ/layout/grid-3.typ
@@ -67,9 +67,9 @@
columns: 2 * (1fr,),
rows: (1fr, 2fr, auto, 1fr, 1cm),
row-gutter: 10pt,
- rect(height: 100%, width: 100%, fill: rgb("ff0000"))[No height],
+ rect(fill: rgb("ff0000"))[No height],
[foo],
- rect(height: 100%, width: 100%, fill: rgb("fc0030"))[Still no height],
+ rect(fill: rgb("fc0030"))[Still no height],
[bar],
[The nature of being itself is in question. Am I One? What is being alive?],
[baz],
diff --git a/tests/typ/layout/grid-4.typ b/tests/typ/layout/grid-4.typ
index 02ac0486..d6aa6358 100644
--- a/tests/typ/layout/grid-4.typ
+++ b/tests/typ/layout/grid-4.typ
@@ -15,10 +15,10 @@
#grid(
columns: (1fr,) * 4,
rows: (1cm,),
- rect(width: 50%, height: 100%, fill: conifer),
- rect(width: 50%, height: 100%, fill: forest),
- rect(width: 50%, height: 100%, fill: conifer),
- rect(width: 50%, height: 100%, fill: forest),
+ rect(width: 50%, fill: conifer),
+ rect(width: 50%, fill: forest),
+ rect(width: 50%, fill: conifer),
+ rect(width: 50%, fill: forest),
)
---
diff --git a/tests/typ/layout/stack-1.typ b/tests/typ/layout/stack-1.typ
index b8d8a09d..42a0137d 100644
--- a/tests/typ/layout/stack-1.typ
+++ b/tests/typ/layout/stack-1.typ
@@ -13,9 +13,8 @@
w => rect(width: w, height: 10pt, fill: next())
}
-#let items = for w in widths { (shaded(w),) }
+#let items = for w in widths { (align(right, shaded(w)),) }
-#align(right)
#page(width: 50pt, margins: 0pt)
#stack(dir: btt, ..items)
#pagebreak()