summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/deco.pngbin55184 -> 64132 bytes
-rw-r--r--tests/typ/text/deco.typ12
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/ref/text/deco.png b/tests/ref/text/deco.png
index 782e628c..3a11e72f 100644
--- a/tests/ref/text/deco.png
+++ b/tests/ref/text/deco.png
Binary files differ
diff --git a/tests/typ/text/deco.typ b/tests/typ/text/deco.typ
index dbf86a86..cc9b9b3a 100644
--- a/tests/typ/text/deco.typ
+++ b/tests/typ/text/deco.typ
@@ -59,6 +59,17 @@ We can also specify a customized value
#highlight[abc #sym.integral]
---
+// Test highlight radius
+#highlight(radius: 3pt)[abc],
+#highlight(radius: 1em)[#lorem(5)]
+
+---
+// Test highlight stroke
+#highlight(stroke: 2pt + blue)[abc]
+#highlight(stroke: (top: blue, left: red, bottom: green, right: orange))[abc]
+#highlight(stroke: 1pt, radius: 3pt)[#lorem(5)]
+
+---
// Test underline background
#set underline(background: true, stroke: (thickness: 0.5em, paint: red, cap: "round"))
#underline[This is in the background]
@@ -68,7 +79,6 @@ We can also specify a customized value
#set overline(background: true, stroke: (thickness: 0.5em, paint: red, cap: "round"))
#overline[This is in the background]
-
---
// Test strike background
#set strike(background: true, stroke: 5pt + red)