-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathtrailing-other-space-separators-break-spaces-003.html
49 lines (47 loc) · 1.62 KB
/
trailing-other-space-separators-break-spaces-003.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Text level 3 Test: U+2001 at the end of line with white-space:break-spaces</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-break-spaces-003-ref.html">
<meta name="assert" content="U+2001 at the end of the line must not hang or be discarded if white-space is break-spaces. It thus keeps its usual line breaking properties, as defined in UAX14.">
<meta name="flags" content="should">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
div {
white-space: break-spaces;
font-size: 10px;
line-height: 1;
width: 2em;
}
section {
font-family: Ahem;
float: left;
margin: 0 1em;
color: blue;
}
.ref {
color: orange;
}
.ref div {
white-space: pre;
}
</style>
<p>Test passes if the orange and blue parts of this page are identical.
<!--
* no line breaking opportunity is after an "x"
unless the next character provides one,
and none of the other space separators do.
* no line breaking opportunity is before an "x"
unless the previous character provides one (A).
* a line breaking opportunity is expected after "あ",
unless suppressed by the next character (XB).
* a line breaking opportunity is expected before "あ",
unless suppressed by the previous character (XA).
-->
<section class=ref>
<div>xx <br>ああ<br> あ<br>あ <br>xx</div><!-- A, tailorable -->
</section>
<section>
<div>xx ああ ああ xx</div>
</section>