- Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathtext-transform-fullwidth-007.html
27 lines (26 loc) · 871 Bytes
/
text-transform-fullwidth-007.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<metacharset="utf-8">
<title>CSS Text level 3 Test: text-transform:fullwidth and preserved spaces</title>
<linkrel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<linkrel="help" href="https://www.w3.org/TR/css-text-3/#text-transform-property">
<linkrel="match" href="reference/text-transform-fullwidth-007-ref.html">
<metaname="assert" content="full-width does transforms U+0020 spaces to U+3000 within preserved white space.">
<linkrel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div { font:50px/1 Ahem; }
#test {
color: green;
white-space: pre-wrap;
}
span {
text-transform: full-width;
}
#ref {
color: red;
position: absolute;
z-index:-1;
}
</style>
<p>Test passes if there are two green squares and no red.
<divid=ref>x   x</div>
<divid=test>x<span></span>x</div>