tor-browser

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

elementFromPoint-visibility-hidden-resizer.html (729B)


      1 <!DOCTYPE html>
      2 <title>elementFromPoint on resizer area of an element with visibility:hidden</title>
      3 <link rel="help" href="http://www.w3.org/TR/cssom-view/#extensions-to-the-document-interface">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div id="expected" style="position: absolute; top: 0; left: 0; width: 100px; height: 100px; background: blue"></div>
      7 <div id="hidden" style="position: absolute; top: 0; left: 0;  width: 100px; height: 100px; visibility: hidden; overflow: scroll; resize: both"></div>
      8 <script>
      9 test(() => {
     10  assert_equals(document.elementFromPoint(99, 99).id, "expected", "elementFromPoint should not return the hidden element");
     11 });
     12 </script>