tor-browser

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

foreignObject-dynamic-fixedpos-01.html (748B)


      1 <!DOCTYPE html>
      2 <div style="height: 100px">
      3 </div>
      4 <svg width="200" height="200" style="overflow: visible" class="reftest-wait">
      5  <foreignObject width="200" height="200">
      6    <div id="x" style="position:fixed; top: 0; left: 0">
      7      This is a test
      8    </div>
      9  </foreignObject>
     10  <script>
     11  document.addEventListener("MozReftestInvalidate", doTest, false);
     12  setTimeout(doTest, 4000); // fallback for running outside reftest
     13 
     14  function doTest() {
     15    document.body.offsetWidth;
     16    var kid = document.getElementById("x");
     17    var parent = kid.parentNode;
     18    var nextSibling = kid.nextSibling;
     19    parent.removeChild(kid);
     20    parent.insertBefore(kid, nextSibling); 
     21    document.documentElement.removeAttribute('class');
     22  }
     23  </script>
     24 </svg>