tor-browser

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

break-spaces-011.html (1436B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: line breaking with white-space: break-spaces and element boundaries</title>
      4 <link rel="author" title="Andreu Botella" href="mailto:abotella@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" title="5.1. Line Breaking Details" href="https://drafts.csswg.org/css-text-3/#line-break-details">
      7 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
      8 <meta name="flags" content="ahem">
      9 <link rel="match" href="reference/white-space-break-spaces-005-ref.html">
     10 <meta name="assert" content="An element boundary doesn't allow breaking if white-space is set to break-spaces at both sides of the boundary">
     11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     12 <style>
     13 div {
     14  font: 25px/1 Ahem;
     15 }
     16 .fail {
     17  position: absolute;
     18  color: red;
     19  z-index: -1;
     20 }
     21 .fail span { color: green; }
     22 .test {
     23  color: green;
     24  width: 4.1ch;  /* ".1" to cover floating point errors. */
     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>X<span>X</span>X<span>X</span><br>XX<span>XX</span><br>X<span>X</span>X<span>X</span></div>
     31 <div class="test"><span>XXXX</span> X X XX<span> </span><span> </span>X X</div>