line-break-anywhere-overrides-uax-behavior-002.html (1363B)
1 <!DOCTYPE html> 2 <html lang=en> 3 <meta charset="utf-8"> 4 <title>CSS Text Test: line-break: anywhere overrides behavior defined for the WJ, ZW, GL, and ZWJ classes</title> 5 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com"> 6 <link rel="help" title="5.1. Line Breaking Details" href="https://drafts.csswg.org/css-text-3/#line-break-details"> 7 <link rel="help" title="5.3. Line Breaking Strictness: the line-break property" href="https://drafts.csswg.org/css-text-3/#line-break-property"> 8 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-line-break-anywhere"> 9 <link rel="match" href="reference/line-break-anywhere-004-ref.html"> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <meta name="flags" content="Ahem"> 12 <meta name="assert" content="Except where explicitly defined by 'line-break: anywhere' line breaking behavior defined for the WJ classes in [UAX14] must be honored. "> 13 <style> 14 div { 15 position: relative; 16 font: 50px / 1 Ahem; 17 } 18 .red { 19 position: absolute; 20 width: 100px; 21 height: 100px; 22 background: red; 23 z-index: -1; 24 } 25 .test { 26 color: green; 27 width: 2ch; 28 line-break: anywhere; 29 } 30 </style> 31 <body> 32 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> 33 <div class="red"></div> 34 <div class="test">XXXX</div> 35 </body>