tor-browser

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

table-as-item-wide-content.html (1099B)


      1 <!DOCTYPE html>
      2 <title>CSS Flexbox Test: Flex item as table with wide content</title>
      3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      4 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
      5 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#algo-main-item" title="Sentence beginning with 'The hypothetical main size is...'">
      6 <meta name="assert" content="A flex item respects the _used_ min size of an item, which tables define specially.">
      7 <link rel="bookmark" href="https://github.com/w3c/csswg-drafts/issues/2442" />
      8 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      9 <style>
     10 #reference-overlapped-red {
     11  position: absolute;
     12  background-color: red;
     13  width: 100px;
     14  height: 100px;
     15  z-index: -1;
     16 }
     17 </style>
     18 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     19 <div id=reference-overlapped-red></div>
     20 <div style="display:flex; width:50px;">
     21  <div style="min-width:0; flex:1 1; display:table; background:green;">
     22    <div style="width:100px; height:100px;"></div>
     23  </div>
     24 </div>