full-width-leading-spaces-004.html (929B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text level 3 Test: handling trailing ideographic space sequence</title> 4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> 6 <link rel="match" href="reference/white-space-break-spaces-005-ref.html"> 7 <meta name="assert" content="Ideographic space sequences at the end of line must hang, and therefore not be taken into account for min content sizing."> 8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 9 <style> 10 .ref { 11 width: 100px; 12 height: 100px; 13 background: green; 14 } 15 .test { 16 width: min-content; 17 font-size: 100px; 18 line-height: 1; 19 background: red; 20 } 21 </style> 22 23 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> 24 <div class="ref"><div class="test"> </div></div>