diff options
| author | Laurenz <laurmaedje@gmail.com> | 2025-06-26 15:44:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-26 13:44:45 +0000 |
| commit | 9311f6f08eca583b6214834148c94685f0161c21 (patch) | |
| tree | 3d217e63cbd2fd162abe98ba0f9818058c39dc27 /tests | |
| parent | 7420ec972ffd6e4893fa24d12992b375da6b11fa (diff) | |
Basic support for text decoration functions in HTML (#6510)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/html/html-deco.html | 11 | ||||
| -rw-r--r-- | tests/suite/text/deco.typ | 8 |
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)) |
