break-spaces-tab-004.html (920B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 3 Test: wrapping opportunity after each break-spaces space and tab</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-1"> 6 <link rel="match" href="reference/break-spaces-tab-003-ref.html"> 7 <meta name="assert" content="There is a wrapping opportunity after each tab and space in a sequence with white-space:break-spaces."> 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: 1ch; 17 } 18 #ref { 19 color: red; 20 position: absolute; 21 z-index:-1; 22 } 23 </style> 24 25 <p>Test passes if there are two <strong>filled green squares</strong> and <strong>no red</strong>.</p> 26 <div id=ref>X<br><br><br><br><br>X</div> 27 <div id=test>X	 		X</div>