|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=524925 |
|
5 --> |
|
6 |
|
7 <head> |
|
8 <title>Test for Bug 524925</title> |
|
9 <script type="application/javascript" src="/MochiKit/MochiKit.js"></script> |
|
10 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
12 </head> |
|
13 |
|
14 <body> |
|
15 |
|
16 <div id="container" style="width: 100px; height: 100px; overflow: auto;"> |
|
17 <div id="container2" style="width: 100px; height: 100px; overflow: visible;"> |
|
18 <div id="block" style="width: 50px; height: 50px; background-color: #000; -moz-transform:translatey(0px);"></div> |
|
19 </div> |
|
20 </div> |
|
21 |
|
22 <pre id="test"> |
|
23 <script type="application/javascript"> |
|
24 // Move 'block' 100 pixels downwards. |
|
25 var block = document.getElementById("block"); |
|
26 block.style.MozTransform = "translatey(100px)"; |
|
27 |
|
28 // Check the result is correct and finish the test |
|
29 var container = document.getElementById("container"); |
|
30 is(container.scrollHeight, 150, "Overflow areas should update after dynamic transform changes"); |
|
31 </script> |
|
32 </pre> |
|
33 |
|
34 </body> |
|
35 </html> |