blob: f1089f19ab67a4c34bea126a9dec4bc23e7de0fe (
plain)
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>
<meta charset="utf-8">
<title>CSS Text level 3 Test: text-transform:fullwidth and preserved spaces</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://www.w3.org/TR/css-text-3/#text-transform-property">
<link rel="match" href="reference/text-transform-fullwidth-007-ref.html">
<meta name="assert" content="full-width does transforms U+0020 spaces to U+3000 within preserved white space.">
<link rel="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.
<div id=ref>x   x</div>
<div id=test>x<span> </span>x</div>
|