tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

break-spaces-with-ideographic-space-010.html (1134B)


      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 <meta name="flags" content="ahem">
      8 <link rel="match" href="reference/white-space-break-spaces-005-ref.html">
      9 <meta name="assert" content="break-spaces only allows breaking after an ideographic space, hence, it may overflow.">
     10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     11 <style>
     12 div {
     13  font: 25px/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: 4ch;
     24 
     25  white-space: break-spaces;
     26 }
     27 </style>
     28 
     29 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     30 <div class="fail">XXXX<br><span>X</span>XX<span>X<br>XXXX<br>XXXX</span></div>
     31 <div class="test">XXXX&#x3000;&#x3000;XX</div>