layout/base/tests/test_bug731777.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 <head>
michael@0 4 <title>Test for Bug 731777</title>
michael@0 5 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
michael@0 6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
michael@0 7 <style>
michael@0 8 #container {
michael@0 9 position: relative;
michael@0 10 height: 300px;
michael@0 11 width: 300px;
michael@0 12 margin: 50px 100px;
michael@0 13 border: 2px solid blue;
michael@0 14 background-color: #044B0A;
michael@0 15
michael@0 16 -moz-perspective: 500px;
michael@0 17 overflow:hidden;
michael@0 18 }
michael@0 19
michael@0 20 #inner {
michael@0 21 margin: 0px;
michael@0 22 width: 480px;
michael@0 23 border: 2px solid blue;
michael@0 24 height: 220px;
michael@0 25 background-color: #844BCA;
michael@0 26
michael@0 27 -moz-transform: rotateY(91deg) translateX(0px) translateZ(0px);
michael@0 28 transition: 5s;
michael@0 29 }
michael@0 30
michael@0 31 </style>
michael@0 32 </head>
michael@0 33 <body>
michael@0 34 <div id="container">
michael@0 35 <div id="inner"></div>
michael@0 36 </div>
michael@0 37
michael@0 38 <pre id="test">
michael@0 39 <script type="application/javascript">
michael@0 40
michael@0 41 /** Test for Bug 731777 **/
michael@0 42
michael@0 43 is(document.elementFromPoint(325,170), document.getElementById("inner"), "Able to hit transformed object");
michael@0 44 is(document.elementFromPoint(405,170), document.getElementById("inner"), "Able to hit transformed object");
michael@0 45
michael@0 46 </script>
michael@0 47 </pre>
michael@0 48 </body>
michael@0 49 </html>

mercurial