summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authortingerrr <github@tinger.dev>2023-09-25 16:19:48 +0200
committerGitHub <noreply@github.com>2023-09-25 16:19:48 +0200
commit0710d1c118efaca52e5151ece32f758f163086b6 (patch)
treec2adfa7874d2988538d23542ff344c931ef89cf9 /tests
parent063e9afccf74201e0d4a8041b48a7a5028e905c3 (diff)
Add `background` parameter to `overline`, `underline` and `strike` (#2219)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/deco.pngbin48180 -> 55102 bytes
-rw-r--r--tests/typ/text/deco.typ16
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/ref/text/deco.png b/tests/ref/text/deco.png
index 006c969f..104c5a12 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 b79b80b2..dbf86a86 100644
--- a/tests/typ/text/deco.typ
+++ b/tests/typ/text/deco.typ
@@ -57,3 +57,19 @@ We can also specify a customized value
#set highlight(top-edge: "bounds", bottom-edge: "bounds")
#highlight[abc]
#highlight[abc #sym.integral]
+
+---
+// Test underline background
+#set underline(background: true, stroke: (thickness: 0.5em, paint: red, cap: "round"))
+#underline[This is in the background]
+
+---
+// Test overline background
+#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)
+#strike[This is in the background]