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