summaryrefslogtreecommitdiff
path: root/tests/typ/style
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-21 17:12:16 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-21 17:12:16 +0100
commitdd9c323941260a1d08d5113dbefa023713f553da (patch)
tree48c813c01a83f5c6ca67ebbabd041c0298eb0da2 /tests/typ/style
parentc28d2130ddda3ae9b25cc16c3015087990ccb6e9 (diff)
Show with set
Diffstat (limited to 'tests/typ/style')
-rw-r--r--tests/typ/style/construct.typ2
-rw-r--r--tests/typ/style/label.typ8
-rw-r--r--tests/typ/style/show-node.typ2
-rw-r--r--tests/typ/style/show-selector.typ6
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/typ/style/construct.typ b/tests/typ/style/construct.typ
index be11e97e..f535184c 100644
--- a/tests/typ/style/construct.typ
+++ b/tests/typ/style/construct.typ
@@ -27,5 +27,5 @@ A #rect(fill: yellow, inset: 5pt, rect()) B
---
// The constructor property should still work
// when there are recursive show rules.
-#show list: text.with(blue)
+#show list: set text(blue)
#list(label: "(a)", [A], list[B])
diff --git a/tests/typ/style/label.typ b/tests/typ/style/label.typ
index 0b667783..3ce0c02c 100644
--- a/tests/typ/style/label.typ
+++ b/tests/typ/style/label.typ
@@ -2,7 +2,7 @@
---
// Test labelled headings.
-#show heading: text.with(10pt)
+#show heading: set text(10pt)
#show heading.where(label: "intro"): underline
= Introduction <intro>
@@ -13,7 +13,7 @@ The end.
---
// Test label after expression.
-#show strong.where(label: "v"): text.with(red)
+#show strong.where(label: "v"): set text(red)
#let a = [*A*]
#let b = [*B*]
@@ -30,8 +30,8 @@ This is a thing [that <last>] happened.
---
// Test abusing labels for styling.
-#show strong.where(label: "red"): text.with(red)
-#show strong.where(label: "blue"): text.with(blue)
+#show strong.where(label: "red"): set text(red)
+#show strong.where(label: "blue"): set text(blue)
*A* *B* <red> *C* <blue> *D*
diff --git a/tests/typ/style/show-node.typ b/tests/typ/style/show-node.typ
index 51b4734e..0124e61c 100644
--- a/tests/typ/style/show-node.typ
+++ b/tests/typ/style/show-node.typ
@@ -13,7 +13,7 @@
---
// Test full reset.
#show heading: [B]
-#show heading: text.with(size: 10pt, weight: 400)
+#show heading: set text(size: 10pt, weight: 400)
A [= Heading] C
---
diff --git a/tests/typ/style/show-selector.typ b/tests/typ/style/show-selector.typ
index ed8c0d8e..0e9823a5 100644
--- a/tests/typ/style/show-selector.typ
+++ b/tests/typ/style/show-selector.typ
@@ -28,9 +28,9 @@ code!("it");
```
---
-#show heading.where(level: 1): text.with(red)
-#show heading.where(level: 2): text.with(blue)
-#show heading: text.with(green)
+#show heading.where(level: 1): set text(red)
+#show heading.where(level: 2): set text(blue)
+#show heading: set text(green)
= Red
== Blue
=== Green