tor-browser

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

pre-wrap-020.html (941B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text level 3 Test: trailing pre-wrap spaces and conditional hanging</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-020-ref.html">
      7 <meta name="assert" content="trailing pre-wrap spaces hang conditionally before forced breaks, which is different from not hanging at all, as it doesn't cause wrapping at earlier opportunities.">
      8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      9 <style>
     10 div {
     11  font-size: 2rem;
     12  font-family: Ahem;
     13  width: 3ch;
     14 }
     15 #test {
     16  white-space: pre-wrap;
     17  color: green;
     18 }
     19 
     20 .ref {
     21  white-space: pre;
     22  color: red;
     23  position: absolute;
     24  z-index: -1;
     25 }
     26 
     27 </style>
     28 
     29 <p>Test passes if there are green rectangles below and no red.
     30 
     31 <div class=ref>0 0<br>0 0</div>
     32 <div id=test>0 0 0 0 </div>