tor-browser

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

white-space-intrinsic-size-004.html (1167B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Text Test: max-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-004-ref.html">
      8 <meta name="assert" content="Preserved spaces at the end of the line do affect the intrinsic max-content size when white-space is pre-wrap, as spaces before a forced break, at the end of un unwrapped line, only hanging conditionally, which does not prevent contributing to the max-content size. The value of overflow-wrap makes no difference.">
      9 <style>
     10 aside {
     11  float: left;
     12  white-space: pre-wrap;
     13  background: green;
     14 }
     15 aside:last-of-type { overflow-wrap: break-word; }
     16 div {
     17  background: red;
     18  color: transparent;
     19  font-family: monospace;
     20  font-size: 50px;
     21  width: 3ch;
     22  line-height: 1;
     23 }
     24 </style>
     25 
     26 <p>Test passes if there is a single green rectangle below and no red.
     27 <div>
     28  <aside>X  </aside>
     29  <aside>X  </aside>
     30 </div>