break-spaces-tab-006.html (949B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 3 Test: break-spaces tabs and spaces don't hang</title> 4 <link rel="author" title="Florian Rivoal" href="http://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/break-spaces-tab-005-ref.html"> 7 <meta name="assert" content="a sequence of break-spaces tabs and spaces at the end of a line does not hang, and can wrap after each tab or space."> 8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 9 <style> 10 div { 11 font: 20px/1 Ahem; 12 } 13 #test { 14 white-space: break-spaces; 15 color: green; 16 width: 2ch; 17 } 18 #ref { 19 white-space: pre; 20 width: 2ch; 21 background: red; 22 color: green; 23 position: absolute; 24 z-index:-1; 25 } 26 </style> 27 28 <p>Test passes if there is a green rectangle and no red. 29 <div id=ref> X<br> X<br>XX<br>XX<br>XX<br>XX<br> </div> 30 <div id=test>X<wbr>X	 		XX</div>