OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <body> |
| 4 <div id="container-fixed" style="position: fixed;"> |
| 5 <div style="position: fixed;"></div> |
| 6 </div> |
| 7 <div id="container-relative" style="position: relative;"> |
| 8 <div style="position: fixed;"></div> |
| 9 </div> |
| 10 <p id="description"> |
| 11 This tests that changing the container's position from fixed or relative
to absolute is safe,<br> |
| 12 when child container with fixed position is present.<br> |
| 13 PASS, if no crash or assert in debug. |
| 14 </p> |
| 15 <script> |
| 16 if (window.testRunner) |
| 17 testRunner.dumpAsText(); |
| 18 document.body.offsetHeight; |
| 19 |
| 20 var fixedContainer = document.getElementById("container-fixed"); |
| 21 fixedContainer.style.position = "absolute"; |
| 22 |
| 23 var relativeContainer = document.getElementById("container-relative"); |
| 24 relativeContainer.style.position = "absolute"; |
| 25 </script> |
| 26 </body> |
| 27 </html> |
OLD | NEW |