trailing-other-space-separators-002.html (2016B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 3 Test: sequence of spaces and other space separators at the end of line with white-space:pre-wrap</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-002-ref.html"> 7 <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."> 8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 9 <style> 10 div { 11 white-space: pre-wrap; 12 font-family: Ahem; 13 font-size: 10px; 14 line-height: 1; 15 width: 3ch; 16 color: green; 17 } 18 .red { 19 position: absolute; 20 z-index: -1; 21 } 22 .red div { 23 color: red; 24 } 25 span { color: transparent; } /* because ogham space is otherwise visible*/ 26 </style> 27 28 <p>Test passes if there are two green tall boxes below and no red. 29 30 <section class=red> 31 <div>x x<br>x x</div> 32 <div>x x<br>x x</div> 33 <div>x x<br>x x</div> 34 <div>x x<br>x x</div> 35 <div>x x<br>x x</div> 36 <div>x x<br>x x</div> 37 <div>x x<br>x x</div> 38 <div>x x<br>x x</div> 39 <div>x x<br>x x</div> 40 <div>x x<br>x x</div> 41 <div>x x<br>x x</div> 42 <div>x x<br>x x</div> 43 <div>x x<br>x x</div> 44 <div>x x<br>x x</div> 45 <div>x x<br>x x</div> 46 <div>x x<br>x x</div> 47 </section> 48 <section> 49 <div>x x<span> </span>                   x x</div> 50 <div>x x<span> </span>x x</div> 51 <div>x x x x</div> 52 <div>x x x x</div> 53 <div>x x x x</div> 54 <div>x x x x</div> 55 <div>x x x x</div> 56 <div>x x x x</div> 57 <div>x x x x</div> 58 <div>x x <wbr>x x</div> 59 <div>x x x x</div> 60 <div>x x x x</div> 61 <div>x x x x</div> 62 <div>x x <wbr>x x</div> 63 <div>x x x x</div> 64 <div>x x x x</div> 65 </section>