tor-browser

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

shrink-to-fit-sizing-max-width-min-content.html (760B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
      5 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      6 <link rel="help" href="https://drafts.csswg.org/css2/#float-width">
      7 <link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
      8 <meta name="assert" content="shrink-to-fit sizing should respect max-width: min-content">
      9 <style>
     10 .container {
     11  font: 100px/1 Ahem;
     12  color: green;
     13  width: 100px;
     14 }
     15 .float {
     16  float: right;
     17 }
     18 .max-content {
     19  max-width: min-content;
     20  width: 600px;
     21 }
     22 </style>
     23 </head>
     24 <body>
     25 <p>Test passes if there is a filled green square.</p>
     26 <div class="container">
     27  <div class=float>
     28      <div class=max-content>x</div>
     29  </div>
     30 </div>
     31 </body>
     32 </html>