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