overflow-wrap-anywhere-001.html (1034B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text Test: overflow-wrap: anywhere</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/#valdef-overflow-wrap-anywhere"> 6 <meta name="flags" content="ahem"> 7 <link rel="match" href="reference/overflow-wrap-break-word-001-ref.html"> 8 <meta name="assert" content="sequences of nbsp characters that would cause overflow are expected to be broken when overflow-wrap is anywhere"> 9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 10 <style> 11 div { 12 position: relative; 13 width: 100px; 14 height: 100px; 15 font-family: Ahem; 16 color: red; 17 overflow-wrap: anywhere; 18 font-size: 25px; 19 line-height: 27px; 20 } 21 div::after{ 22 content: ""; 23 position: absolute; 24 top: 0; left: 0; bottom: 0; right: 0; 25 background: green; 26 } 27 </style> 28 <body> 29 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> 30 <div> X</div> 31 </body>