tor-browser

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

pre-wrap-012.html (983B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: preserved white space at the end of soft-wrapped lines and white-space:pre-wrap with right alignement</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-012-ref.html">
      7 <meta name="assert" content="When white-space is pre-wrap, spaces at the end of soft-wrapped lines hang, so they do not have any effect when right-aligning.">
      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) 1ch 0/2ch 2ch no-repeat;
     18 
     19  width: 3ch;
     20  text-align: right;
     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>