tor-browser

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

break-spaces-before-first-char-001.html (1160B)


      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 <link rel="match" href="reference/white-space-break-spaces-005-ref.html">
      8 <meta name="flags" content="ahem">
      9 <meta name="assert" content="A breaking opportunity exists only after a preserved white space character.">
     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 
     28 </style>
     29 <body>
     30  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     31  <div class="fail">X<span>XXX<br></span>XX<span>X</span>X<br><span>XXXX<br></span><span>XXXX<br></span></div>
     32  <div class="test">X XX X</div>
     33 </body>