tor-browser

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

remove-block-before-self-collapsing-sibling-with-clearance.html (999B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      3 <link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#clearance">
      4 <link rel="help" href="https://www.w3.org/TR/CSS22/box.html#collapsing-margins">
      5 <link rel="help" href="https://www.w3.org/TR/CSS22/visuren.html#phantom-line-box">
      6 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1003810">
      7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      8 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
      9 <div style="overflow:hidden;">
     10  <div id="first" style="height:100px;"></div>
     11  <div id="victim" style="width:100px; padding-bottom:1px; background:red;">
     12    <span></span>
     13    <div style="float:left; width:100%; height:100px; background:green;"></div>
     14    <div style="clear:both;"></div>
     15  </div>
     16 </div>
     17 <script>
     18  document.body.offsetTop;
     19  victim.style.paddingBottom = "0";
     20  first.style.display = "none";
     21 </script>