layout/forms/test/test_bug476308.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <!--
michael@0 4 https://bugzilla.mozilla.org/show_bug.cgi?id=476308
michael@0 5 -->
michael@0 6 <head>
michael@0 7 <title>Test for Bug 345267</title>
michael@0 8 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
michael@0 9 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
michael@0 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
michael@0 11 </head>
michael@0 12 <body>
michael@0 13
michael@0 14 <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;"
michael@0 15 id="button1">1</button>
michael@0 16
michael@0 17 <br />
michael@0 18 <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;"
michael@0 19 id="div1">2</div>
michael@0 20
michael@0 21 <script type="text/javascript">
michael@0 22 var elem = document.elementFromPoint(130, 310);
michael@0 23 isnot(elem, document.getElementById("button1"), "button1's box-shadow is receiving events when it shouldn't");
michael@0 24
michael@0 25 elem = document.elementFromPoint(50, 500);
michael@0 26 isnot(elem, document.getElementById("div1"), "div1's box-shadow is receiving events when it shouldn't");
michael@0 27 </script>
michael@0 28
michael@0 29 </body>
michael@0 30 </html>
michael@0 31

mercurial