tor-browser

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

test_bug463104.html (1155B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>Noninteger coordinates test</title>
      5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      7 </head>
      8 <body>
      9 <div id="a" style="position: fixed; left: 5.5px; top: 5.5px; width: 100px; height: 100px; background: blue"></div>
     10 <p style="margin-top: 110px">
     11 <script>
     12 var a = document.getElementById("a");
     13 isnot(a, document.elementFromPoint(5, 5), "a shouldn't be found");
     14 isnot(a, document.elementFromPoint(5.25, 5.25), "a shouldn't be found");
     15 is(a, document.elementFromPoint(5.5, 5.5), "a should be found");
     16 is(a, document.elementFromPoint(5.75, 5.75), "a should be found");
     17 is(a, document.elementFromPoint(6, 6), "a should be found");
     18 is(a, document.elementFromPoint(105, 105), "a should be found");
     19 is(a, document.elementFromPoint(105.25, 105.25), "a should be found");
     20 isnot(a, document.elementFromPoint(105.5, 105.5), "a shouldn't be found");
     21 isnot(a, document.elementFromPoint(105.75, 105.75), "a shouldn't be found");
     22 isnot(a, document.elementFromPoint(106, 106), "a shouldn't be found");
     23 </script>
     24 </body>
     25 </html>