break-spaces-before-first-ideographic-char-011.html (2114B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text Test: ideographic 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" title="5.2. Breaking Rules for Letters: the word-break property " href="https://drafts.csswg.org/css-text-3/#word-break-property"> 7 <link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://drafts.csswg.org/css-text-3/#propdef-line-break"> 8 <link rel="help" title="5.5. Overflow Wrapping: the overflow-wrap/word-wrap property " href="https://drafts.csswg.org/css-text-3/#overflow-wrap-property"> 9 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces"> 10 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere"> 11 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all"> 12 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-break-word"> 13 <link rel="match" href="reference/white-space-break-spaces-005-ref.html"> 14 <meta name="flags" content="ahem"> 15 <meta name="assert" content="A breaking opportunity exists before the first character of a sequence of ideographic spaces to avoid the line overflow, honoring the 'line-break' property, ignoring previous breaking opportunities."> 16 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 17 <style> 18 div { 19 font: 25px/1 Ahem; 20 } 21 .fail { 22 position: absolute; 23 color: red; 24 z-index: -1; 25 } 26 span { color: green; } 27 .test { 28 color: green; 29 width: 4ch; 30 31 white-space: break-spaces; 32 line-break: anywhere; 33 word-break: break-all; 34 overflow-wrap: break-word; 35 } 36 37 </style> 38 <body> 39 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> 40 <div class="fail">X<span>X</span>XX<br><span>X</span>X<span>XX<br></span><span>XXXX<br></span><span>XXXX<br></span></div> 41 <div class="test">X XX X</div> 42 </body>