summaryrefslogtreecommitdiff
path: root/tests/typ/style
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/style')
-rw-r--r--tests/typ/style/construct.typ4
-rw-r--r--tests/typ/style/show.typ6
-rw-r--r--tests/typ/style/wrap.typ6
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/typ/style/construct.typ b/tests/typ/style/construct.typ
index 8bc348a9..f01b534b 100644
--- a/tests/typ/style/construct.typ
+++ b/tests/typ/style/construct.typ
@@ -22,7 +22,7 @@
---
// The inner rectangle should also be yellow here.
// (and therefore invisible)
-[#set rect(fill: yellow);#text(100%, rect(padding: 5pt, rect()))]
+[#set rect(fill: yellow);#text(1em, rect(padding: 5pt, rect()))]
---
// The inner rectangle should not be yellow here.
@@ -30,4 +30,4 @@ A #rect(fill: yellow, padding: 5pt, rect()) B
---
// The inner list should not be indented extra.
-[#set text(100%);#list(indent: 20pt, list[A])]
+[#set text(1em);#list(indent: 20pt, list[A])]
diff --git a/tests/typ/style/show.typ b/tests/typ/style/show.typ
index 2e003b0a..7a5aba8f 100644
--- a/tests/typ/style/show.typ
+++ b/tests/typ/style/show.typ
@@ -3,11 +3,11 @@
#set page("a8", footer: p => v(-5pt) + align(right, [#p]))
#let i = 1
-#set heading(size: 100%)
+#set heading(size: 1em)
#show heading(level, body) as {
if level == 1 {
v(10pt)
- underline(text(150%, blue)[{i}. #body])
+ underline(text(1.5em, blue)[{i}. #body])
i += 1
} else {
text(red, body)
@@ -29,7 +29,7 @@ Some more text.
Another text.
---
-#set heading(size: 100%, strong: false, block: false)
+#set heading(size: 1em, strong: false, block: false)
#show heading(a, b) as [B]
A [= Heading] C
diff --git a/tests/typ/style/wrap.typ b/tests/typ/style/wrap.typ
index b549f7d0..2a9074cb 100644
--- a/tests/typ/style/wrap.typ
+++ b/tests/typ/style/wrap.typ
@@ -2,10 +2,10 @@
---
#set page(height: 130pt)
-#set text(70%)
+#set text(0.7em)
#align(center)[
- #text(130%)[*Essay on typography*] \
+ #text(1.3em)[*Essay on typography*] \
T. Ypst
]
@@ -20,7 +20,7 @@ A [_B #wrap c in [*#c*]; C_] D
---
// Test wrap style precedence.
-#set text(fill: eastern, size: 150%)
+#set text(fill: eastern, size: 1.5em)
#wrap body in text(fill: forest, body)
Forest