File: trailing-other-space-separators-002.html

package info (click to toggle)
thunderbird 1%3A78.14.0-1~deb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,922,628 kB
  • sloc: cpp: 5,990,120; javascript: 4,418,692; ansic: 3,063,889; python: 915,509; asm: 304,197; xml: 206,623; sh: 109,253; java: 108,679; makefile: 22,985; perl: 15,867; yacc: 4,565; objc: 3,026; pascal: 1,787; lex: 1,720; ada: 1,681; cs: 879; exp: 505; awk: 485; sql: 452; php: 436; lisp: 432; ruby: 99; sed: 69; csh: 45
file content (65 lines) | stat: -rw-r--r-- 2,016 bytes parent folder | download | duplicates (26)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test: sequence of spaces and other space separators at the end of line with white-space:pre-wrap</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
<link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
<link rel="match" href="reference/trailing-other-space-separators-002-ref.html">
<meta name="assert" content="An sequence of regular spaces and other space separators at the end of the line must hang if white-space is pre-wrap.">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
  white-space: pre-wrap;
  font-family: Ahem;
  font-size: 10px;
  line-height: 1;
  width: 3ch;
  color: green;
}
.red {
  position: absolute;
  z-index: -1;
}
.red div {
  color: red;
}
span { color: transparent; } /* because ogham space is otherwise visible*/
</style>

<p>Test passes if there are two green tall boxes below and no red.

<section class=red>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
  <div>x x<br>x x</div>
</section>
<section>
  <div>x x<span>&#x1680;</span>&#x2000; &#x2001;&#x2002;&#x2003; &#x2004;&#x2005;&#x2006; &#x2007;&#x2008;&#x2009;&#x200A;  &#x202F;&#x205F; &#x3000;x x</div>
  <div>x x<span>&#x1680;</span>x x</div>
  <div>x x&#x2000;x x</div>
  <div>x x&#x2001;x x</div>
  <div>x x&#x2002;x x</div>
  <div>x x&#x2003;x x</div>
  <div>x x&#x2004;x x</div>
  <div>x x&#x2005;x x</div>
  <div>x x&#x2006;x x</div>
  <div>x x&#x2007;<wbr>x x</div>
  <div>x x&#x2008;x x</div>
  <div>x x&#x2009;x x</div>
  <div>x x&#x200A;x x</div>
  <div>x x&#x202F;<wbr>x x</div>
  <div>x x&#x205F;x x</div>
  <div>x x&#x3000;x x</div>
</section>