tor-browser

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

trailing-ideographic-space-break-spaces-008.html (1204B)


      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' doesn't prevent overflow if the first ideographic space of the sequence doesn't fit, which must hang.">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10 <style>
     11 div {
     12    font: 25px/1 Ahem;
     13    color: transparent;
     14    height: 100px;
     15 }
     16 .test {
     17    width: 3ch;
     18    white-space: break-spaces;
     19 }
     20 .test > span { background: green; }
     21 .ref {
     22    width: 100px;
     23    background: green;
     24    position: absolute;
     25    z-index: -1;
     26 }
     27 .ref > span { color: red; }
     28 </style>
     29 
     30 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     31 <div class="ref">XXX<span>X</span></div>
     32 <div class="test">XXX<span>&#x3000;</span>X</div>