Index: LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html |
diff --git a/LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html b/LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3a94397d7f8595de299a663723e036463758c304 |
--- /dev/null |
+++ b/LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html |
@@ -0,0 +1,27 @@ |
+<!DOCTYPE HTML> |
+<html> |
+<body> |
+ <div id="container-fixed" style="position: fixed;"> |
+ <div style="position: fixed;"></div> |
+ </div> |
+ <div id="container-relative" style="position: relative;"> |
+ <div style="position: fixed;"></div> |
+ </div> |
+ <p id="description"> |
+ This tests that changing the container's position from fixed or relative to absolute is safe,<br> |
+ when child container with fixed position is present.<br> |
+ PASS, if no crash or assert in debug. |
+ </p> |
+ <script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ document.body.offsetHeight; |
+ |
+ var fixedContainer = document.getElementById("container-fixed"); |
+ fixedContainer.style.position = "absolute"; |
+ |
+ var relativeContainer = document.getElementById("container-relative"); |
+ relativeContainer.style.position = "absolute"; |
+ </script> |
+</body> |
+</html> |