mirror of
https://github.com/typst/typst
synced 2025-08-07 19:57:54 +08:00
Removes test from text/deco.typ
A test already exists for small caps; it now also tests HTML render.
This commit is contained in:
parent
4f6712e3b3
commit
99015efa66
@ -7,6 +7,5 @@
|
||||
<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>
|
||||
<p><span style="font-variant-caps: small-caps">Small Caps</span> <span style="font-variant-caps: all-small-caps">All Small Caps</span></p>
|
||||
</body>
|
||||
</html>
|
||||
|
10
tests/ref/html/smallcaps-all.html
Normal file
10
tests/ref/html/smallcaps-all.html
Normal file
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
</head>
|
||||
<body>
|
||||
<p><span style="font-variant-caps: small-caps">Test 012</span><br><span style="font-variant-caps: all-small-caps">Test 012</span></p>
|
||||
</body>
|
||||
</html>
|
@ -91,6 +91,3 @@ We can also specify a customized value
|
||||
#overline[Overlined]
|
||||
|
||||
#(strike, highlight, underline, overline).fold([Mixed], (it, f) => f(it))
|
||||
|
||||
#smallcaps[Small Caps]
|
||||
#smallcaps(all: true)[All Small Caps]
|
||||
|
@ -11,6 +11,6 @@
|
||||
#show smallcaps: set text(fill: red)
|
||||
#smallcaps[Smallcaps]
|
||||
|
||||
--- smallcaps-all ---
|
||||
--- smallcaps-all render html ---
|
||||
#smallcaps(all: false)[Test 012] \
|
||||
#smallcaps(all: true)[Test 012]
|
||||
|
Loading…
x
Reference in New Issue
Block a user