tor-browser

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

trailing-ideographic-space-break-spaces-007.html (1270B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: Breaking sequences of trailing ideograohic spaces </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="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
      7 <link rel="match" href="reference/white-space-break-spaces-005-ref.html">
      8 <meta name="assert" content="Setting white-space to 'break-spaces', hanging or collapsing the advance width of the spaces is not allowed.">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10 <style>
     11 div { font: 25px/1 Ahem; }
     12 .test {
     13    z-index: -1;
     14    color: green;
     15 
     16    width: 4ch;
     17    white-space: break-spaces;
     18 }
     19 .test > span { background: red; }
     20 .ref {
     21    color: transparent;
     22    background: green;
     23    position: absolute;
     24 }
     25 .ref > span { color: transparent; }
     26 </style>
     27 
     28 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     29 <div class="ref">XX<span>XX<br>XXXX<br>XXXX</br>XX</span>XX</div>
     30 <div class="test">XX<span>&#x3000;&#x3000;&#x3000;&#x3000;&#x3000;&#x3000;&#x3000;&#x3000;&#x3000;&#x3000;&#x3000;&#x3000;</span>XX</div>