1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/forms/test/test_bug476308.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=476308 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 345267</title> 1.11 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.14 +</head> 1.15 +<body> 1.16 + 1.17 +<button style="-moz-appearance: none; width: 100px; height: 60px; background-color: red; border: 2px solid green; box-shadow: 30px 0px 3.5px black; position: absolute; top: 300px; left: 20px;" 1.18 + id="button1">1</button> 1.19 + 1.20 +<br /> 1.21 +<div style="width: 100px; height: 100px; background-color: green; border: 3px dotted blue; box-shadow: -30px -20px 0px black; position: absolute; top: 500px; left: 70px;" 1.22 + id="div1">2</div> 1.23 + 1.24 +<script type="text/javascript"> 1.25 + var elem = document.elementFromPoint(130, 310); 1.26 + isnot(elem, document.getElementById("button1"), "button1's box-shadow is receiving events when it shouldn't"); 1.27 + 1.28 + elem = document.elementFromPoint(50, 500); 1.29 + isnot(elem, document.getElementById("div1"), "div1's box-shadow is receiving events when it shouldn't"); 1.30 +</script> 1.31 + 1.32 +</body> 1.33 +</html> 1.34 +