tor-browser

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

table-as-item-change-cell.html (1054B)


      1 <!DOCTYPE html>
      2 <title>CSS Flexbox Test: Flex item as table, change contents of cell</title>
      3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      4 <link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#layout-algorithm" title="9. Flex Layout Algorithm">
      5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      6 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      7 <div style="display:flex; flex-direction:column; width:100px; background:green;">
      8  <div style="position:relative; z-index:-1; display:table; width:100%; height:100px; background:hotpink;">
      9    <div style="display:table-cell; width:100px;"></div>
     10    <div id="cell" style="display:table-cell;">
     11      <div id="child" style="display:none; color:red;">
     12        <!-- Add some whitespace after the word "FAIL", in case of negative glyph bearings. -->
     13        FAIL&nbsp;
     14      </div>
     15    </div>
     16  </div>
     17 </div>
     18 <script>
     19  document.body.offsetTop;
     20  document.getElementById("child").style.display = "block";
     21 </script>