summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/html/html-deco.html11
-rw-r--r--tests/suite/text/deco.typ8
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/ref/html/html-deco.html b/tests/ref/html/html-deco.html
new file mode 100644
index 00000000..87f2ab4c
--- /dev/null
+++ b/tests/ref/html/html-deco.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ </head>
+ <body>
+ <p><s>Struck</s> <mark>Highlighted</mark> <span style="text-decoration: underline">Underlined</span> <span style="text-decoration: overline">Overlined</span></p>
+ <p><span style="text-decoration: overline"><span style="text-decoration: underline"><mark><s>Mixed</s></mark></span></span></p>
+ </body>
+</html>
diff --git a/tests/suite/text/deco.typ b/tests/suite/text/deco.typ
index 07fdb6c1..a1d287d9 100644
--- a/tests/suite/text/deco.typ
+++ b/tests/suite/text/deco.typ
@@ -83,3 +83,11 @@ We can also specify a customized value
#highlight(stroke: 2pt + blue)[abc]
#highlight(stroke: (top: blue, left: red, bottom: green, right: orange))[abc]
#highlight(stroke: 1pt, radius: 3pt)[#lorem(5)]
+
+--- html-deco html ---
+#strike[Struck]
+#highlight[Highlighted]
+#underline[Underlined]
+#overline[Overlined]
+
+#(strike, highlight, underline, overline).fold([Mixed], (it, f) => f(it))