trailing-other-space-separators-break-spaces-003.html (1557B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 3 Test: U+2001 at the end of line with white-space:break-spaces</title> 4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"> 5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> 6 <link rel="match" href="reference/trailing-other-space-separators-break-spaces-002-ref.html"> 7 <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."> 8 <meta name="flags" content="should"> 9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 10 <style> 11 div { 12 white-space: break-spaces; 13 font-size: 10px; 14 line-height: 1; 15 width: 2em; 16 } 17 section { 18 font-family: Ahem; 19 float: left; 20 margin: 0 1em; 21 color: blue; 22 } 23 .ref { 24 color: orange; 25 } 26 .ref div { 27 white-space: pre; 28 } 29 </style> 30 31 <p>Test passes if the orange and blue parts of this page are identical. 32 33 <!-- 34 * There is no line breaking opportunity between two "x" 35 * There is a line breaking opportunity between two "あ" 36 * There is a line breaking opportunity after "x" or "あ" 37 unless suppressed by the next character (BA, GL). 38 * There is a line breaking opportunity before "x" or "あ" 39 unless suppressed by the previous character (BB, GL). 40 --> 41 <section class=ref> 42 <div>xx <br>あ<br>あ <br>あ<br>あ <br>xx</div><!-- BA, tailorable --> 43 </section> 44 <section> 45 <div>xx ああ ああ xx</div> 46 </section>