summaryrefslogtreecommitdiff
path: root/tests/typ/elements
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-16 12:47:14 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-16 12:47:14 +0100
commit79638d4bbdc140a8dca0ccfdf70ffd607d5da251 (patch)
tree3da8a7d345ccac389d07c8327d9c63fd7209a250 /tests/typ/elements
parent73c4701749ac3919c5b845002052326502c67306 (diff)
Don't wrap already layoutable nodes into flows/pars unnecessarily
Diffstat (limited to 'tests/typ/elements')
-rw-r--r--tests/typ/elements/circle.typ15
-rw-r--r--tests/typ/elements/ellipse.typ6
2 files changed, 10 insertions, 11 deletions
diff --git a/tests/typ/elements/circle.typ b/tests/typ/elements/circle.typ
index c36f9f94..4413d0d9 100644
--- a/tests/typ/elements/circle.typ
+++ b/tests/typ/elements/circle.typ
@@ -14,16 +14,15 @@ Auto-sized circle. \
]
Center-aligned rect in auto-sized circle.
-#circle(fill: forest)[
- #align(center, center)
- #rect(fill: conifer, pad(5pt)[
- But, soft!
- ])
-]
+#circle(fill: forest,
+ align(center, center,
+ rect(fill: conifer, pad(5pt)[But, soft!])
+ )
+)
-100%-width rect in auto-sized circle. \
+Rect in auto-sized circle. \
#circle(fill: forest,
- rect(width: 100%, fill: conifer)[
+ rect(fill: conifer)[
But, soft! what light through yonder window breaks?
]
)
diff --git a/tests/typ/elements/ellipse.typ b/tests/typ/elements/ellipse.typ
index 106a8172..3c8572b1 100644
--- a/tests/typ/elements/ellipse.typ
+++ b/tests/typ/elements/ellipse.typ
@@ -5,10 +5,10 @@
#ellipse()
---
-100% rect in 100% ellipse in fixed rect. \
+Rect in ellipse in fixed rect. \
#rect(width: 3cm, height: 2cm, fill: rgb("2a631a"),
- ellipse(width: 100%, height: 100%, fill: forest,
- rect(width: 100%, height: 100%, fill: conifer)[
+ ellipse(fill: forest,
+ rect(fill: conifer)[
#align(center, center)
Stuff inside an ellipse!
]