|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=677878 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 677878</title> |
|
8 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> |
|
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
|
11 |
|
12 <style> |
|
13 #test1 { |
|
14 background: green; |
|
15 height: 100px; |
|
16 width: 100px; |
|
17 -moz-transform: scale(20, 20); |
|
18 -moz-transform-origin: 0 0%; |
|
19 } |
|
20 </style> |
|
21 </head> |
|
22 <body> |
|
23 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=677878">Mozilla Bug 677878</a> |
|
24 <div id="content"> |
|
25 <div id="test1"> |
|
26 <div id="test2" onclick="testFinish();"> |
|
27 test |
|
28 </div> |
|
29 </div> |
|
30 |
|
31 <pre id="test"> |
|
32 <script type="application/javascript"> |
|
33 SimpleTest.waitForExplicitFinish(); |
|
34 runtests(); |
|
35 |
|
36 function runtests() { |
|
37 function doClick() { |
|
38 document.getElementById("test2").addEventListener("mousedown", testFinish, true); |
|
39 // Don't target the center because the center could actually be outside the |
|
40 // viewport. |
|
41 synthesizeMouse(document.getElementById("test2"), 10, 10, { type: "mousedown" }) |
|
42 } |
|
43 setTimeout(doClick, 300); |
|
44 } |
|
45 |
|
46 function testFinish(event){ |
|
47 ok(true, "We can still interact with the item after it is transformed"); |
|
48 SimpleTest.finish(); |
|
49 } |
|
50 </script> |
|
51 </pre> |
|
52 </body> |
|
53 </html> |