tor-browser

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

white-space-intrinsic-size-006.html (896B)


      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="Javier Fernandez" href="mailto:jfernandez@igalia.com">
      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-pre-wrap-trailing-spaces-alt-004-ref.html">
      8 <meta name="assert" content="Preserved spaces unconditionally hang if they might overflow otherwise, hence they do not affect the intrinsic min-content size.">
      9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     10 <style>
     11 div {
     12    font: 25px/1 Ahem;
     13    color: green;
     14    background: red;
     15 
     16    width: min-content;
     17    white-space: pre-wrap;
     18 }
     19 </style>
     20 
     21 <p>This test passes if there is a green square and no red.
     22 
     23 <div>XX&#x0020;XX</div>