summaryrefslogtreecommitdiff
path: root/tests/typ/text
diff options
context:
space:
mode:
authorfrozolotl <44589151+frozolotl@users.noreply.github.com>2024-03-01 09:18:32 +0000
committerGitHub <noreply@github.com>2024-03-01 09:18:32 +0000
commit67ba8d6c0e7b3326283a8f67d2546cd52df59970 (patch)
treed22794627b579d5425b682cde6a436518ef12f89 /tests/typ/text
parent030041466b5b8453ca23e43a6385f4592f78a56c (diff)
Add rounded corners and strokes to highlight (#3526)
Diffstat (limited to 'tests/typ/text')
-rw-r--r--tests/typ/text/deco.typ12
1 files changed, 11 insertions, 1 deletions
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)