tor-browser

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

pre-wrap-004.html (996B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: preserved white space at the end of and white-space:pre-wrap does not change based on line-break:loose</title>
      4 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
      5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
      6 <link rel="match" href="reference/pre-wrap-001-ref.html">
      7 <meta name="assert" content="preserved white space at the end of the line is not wrapped when the white-space property is set to pre-wrap, even if line-break is loose.">
      8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      9 <style>
     10 div {
     11  font-size: 20px;
     12  font-family: Ahem;
     13  line-height: 1em;
     14  white-space: pre-wrap;
     15  color: green;
     16 
     17  background: linear-gradient(red, red) 0 0/2ch 2ch no-repeat;
     18 
     19  width: 4ch;
     20  line-break: loose;
     21 }
     22 </style>
     23 <body>
     24  <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     25  <div>XX    XX</div>
     26 </body>