1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/html/document/test/test_bug463104.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 +<title>Noninteger coordinates test</title> 1.8 +<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 +<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.10 +</head> 1.11 +<body> 1.12 +<div id="a" style="position: fixed; left: 5.5px; top: 5.5px; width: 100px; height: 100px; background: blue"></div> 1.13 +<p style="margin-top: 110px"> 1.14 +<script> 1.15 +var a = document.getElementById("a"); 1.16 +isnot(a, document.elementFromPoint(5, 5), "a shouldn't be found"); 1.17 +isnot(a, document.elementFromPoint(5.25, 5.25), "a shouldn't be found"); 1.18 +is(a, document.elementFromPoint(5.5, 5.5), "a should be found"); 1.19 +is(a, document.elementFromPoint(5.75, 5.75), "a should be found"); 1.20 +is(a, document.elementFromPoint(6, 6), "a should be found"); 1.21 +is(a, document.elementFromPoint(105, 105), "a should be found"); 1.22 +is(a, document.elementFromPoint(105.25, 105.25), "a should be found"); 1.23 +isnot(a, document.elementFromPoint(105.5, 105.5), "a shouldn't be found"); 1.24 +isnot(a, document.elementFromPoint(105.75, 105.75), "a shouldn't be found"); 1.25 +isnot(a, document.elementFromPoint(106, 106), "a shouldn't be found"); 1.26 +</script> 1.27 +</body> 1.28 +</html>