tor-browser

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

white-space-intrinsic-size-003.html (1182B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: min-content sizing and white-space:pre-wrap</title>
      4 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
      5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#propdef-white-space">
      6 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2">
      7 <link rel="match" href="reference/white-space-intrinsic-size-003-ref.html">
      8 <meta name="assert" content="Preserved spaces at the end of the line do not affect the intrinsic min-content size when white-space is pre-wrap. The value of overflow-wrap makes no difference.">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     10 <style>
     11 aside {
     12  float: left;
     13  white-space: pre-wrap;
     14  background: red;
     15 }
     16 div {
     17  color: transparent;
     18  font-family: Ahem;
     19  font-size: 50px;
     20  width: 0ch;
     21 }
     22 .own { overflow-wrap: normal; }
     23 .owbw{ overflow-wrap: break-word; }
     24 
     25 #green {
     26  position: absolute;
     27  background: green;
     28  z-index: 1;
     29  width: auto;
     30 }
     31 </style>
     32 
     33 <p>Test passes if there is a green rectangle below and no red.
     34 <div id=green>X<br>X</div>
     35 <div>
     36  <aside class=own>X   </aside>
     37  <aside class=owbw>X   </aside>
     38 </div>