tor-browser

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

contain-inline-size-intrinsic.html (1008B)


      1 <!DOCTYPE html>
      2 <title>contain:inline-size with contain-intrinsic-size</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-contain/#contain-property">
      4 <link rel="help" href="https://drafts.csswg.org/css-contain-3/#containment-inline-size">
      5 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#propdef-contain-intrinsic-size">
      6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      7 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      8 <div style="background:green; contain:inline-size; height:50px; width:fit-content; contain-intrinsic-inline-size:100px">
      9  <div style="display:inline-block; width:75px;"></div>
     10  <div style="display:inline-block; width:75px;"></div>
     11 </div>
     12 <div style="background:green; contain:inline-size; height:fit-content; width:100px; contain-intrinsic-inline-size:50px; writing-mode: vertical-rl;">
     13  <div style="display:inline-block; height:35px;"></div>
     14  <div style="display:inline-block; height:35px;"></div>
     15 </div>