tor-browser

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

table-as-item-stretch-cross-size-5.html (1527B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
      3 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#valdef-align-items-stretch">
      4 <link rel="bookmark" href="https://crbug.com/1181403">
      5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      6 <meta name="assert" content="Calculate the caption-height correctly when flexbox stretches the table inline size to between caption's min-content and max-width, affecting the caption's block size.">
      7 
      8 <style>
      9 #reference-overlapped-red {
     10  position: absolute;
     11  background-color: red;
     12  width: 100px;
     13  height: 100px;
     14  z-index: -1;
     15 }
     16 
     17 .caption-content {
     18  float: left;
     19  height: 10px;
     20  width: 75px;
     21 }
     22 </style>
     23 
     24 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     25 <div id="reference-overlapped-red"></div>
     26 
     27 <!-- Chrome versions [84..90] incorrectly give the flexbox a height of 80px and the table a height of 100px. overflow: hidden hides the table overflow, showing the red underneath, which exposes the bug. -->
     28 <div style="display: flex; flex-direction: column; width: 100px; overflow: hidden;">
     29  <div style="display: table; background: green; height: 80px;">
     30    <div style="display: table-caption; background: green">
     31      <div class="caption-content"></div>
     32      <div class="caption-content"></div>
     33    </div>
     34    <div style="display: table-cell;">
     35      <div id="this-just-avoids-the-empty-table-code-path" style="height: 10px; width: 10px;"></div>
     36    </div>
     37  </div>
     38 </div>