Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: LayoutTests/fast/dynamic/position-fixed-to-absolute-with-positioned-child-crash.html

Issue 875563003: Ensure that positioned objects' list is always in parent first order (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698