break-spaces-005.html (1543B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text Test: white-space - break-spaces</title> 4 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> 5 <link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://drafts.csswg.org/css-text-3/#white-space-property"> 6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces"> 7 <link rel="match" href="reference/white-space-break-spaces-005-ref.html"> 8 <meta name="flags" content="ahem"> 9 <meta name="assert" content="If 'white-space' is set to 'break-spaces', collapsing preserved white-spaces' advance width is not allowed, so that they can be wrapped honoring the 'white-space' propery."> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style> 12 div { 13 font: 10px/1 Ahem; 14 } 15 .fail { 16 position: absolute; 17 color: red; 18 z-index: -1; 19 } 20 span { color: green; } 21 .test { 22 color: green; 23 width: 100px; 24 25 white-space: break-spaces; 26 } 27 28 </style> 29 <body> 30 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> 31 <div class="fail">XXXX<span>XXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XXXXXXXXXX</span><br><span>XX</span>XXXX<span>XXXX</span></div> 32 <div class="test">XXXX XXXX</div> 33 </body>