summaryrefslogtreecommitdiff
path: root/tests/typ/visualize/gradient-text.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-04-13 10:39:45 +0200
committerGitHub <noreply@github.com>2024-04-13 08:39:45 +0000
commit020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch)
treec0027ad22046e2726c22298461327823d6b88d53 /tests/typ/visualize/gradient-text.typ
parent72dd79210602ecc799726fc096b078afbb47f299 (diff)
Better test runner (#3922)
Diffstat (limited to 'tests/typ/visualize/gradient-text.typ')
-rw-r--r--tests/typ/visualize/gradient-text.typ49
1 files changed, 0 insertions, 49 deletions
diff --git a/tests/typ/visualize/gradient-text.typ b/tests/typ/visualize/gradient-text.typ
deleted file mode 100644
index 671172e1..00000000
--- a/tests/typ/visualize/gradient-text.typ
+++ /dev/null
@@ -1,49 +0,0 @@
-// Test that gradient fills on text.
-// The solid bar gradients are used to make sure that all transforms are
-// correct: if you can see the text through the bar, then the gradient is
-// misaligned to its reference container.
-// Ref: true
-
----
-// Ref: false
-// Make sure they don't work when `relative: "self"`.
-
-// Hint: 17-61 make sure to set `relative: auto` on your text fill
-// Error: 17-61 gradients and patterns on text must be relative to the parent
-#set text(fill: gradient.linear(red, blue, relative: "self"))
-
----
-// Test that gradient fills on text work for globally defined gradients.
-
-#set page(width: 200pt, height: auto, margin: 10pt, background: {
- rect(width: 100%, height: 30pt, fill: gradient.linear(red, blue))
-})
-#set par(justify: true)
-#set text(fill: gradient.linear(red, blue))
-#lorem(30)
-
----
-// Sanity check that the direction works on text.
-
-#set page(width: 200pt, height: auto, margin: 10pt, background: {
- rect(height: 100%, width: 30pt, fill: gradient.linear(dir: btt, red, blue))
-})
-#set par(justify: true)
-#set text(fill: gradient.linear(dir: btt, red, blue))
-#lorem(30)
-
----
-// Test that gradient fills on text work for locally defined gradients.
-
-#set page(width: auto, height: auto, margin: 10pt)
-#show box: set text(fill: gradient.linear(..color.map.rainbow))
-
-Hello, #box[World]!
-
----
-// Test that gradients fills on text work with transforms.
-
-#set page(width: auto, height: auto, margin: 10pt)
-#show box: set text(fill: gradient.linear(..color.map.rainbow))
-
-#rotate(45deg, box[World])