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

Unified Diff: LayoutTests/fast/dynamic/position-change-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: WIP (just idea): redesign positioned objects handling Created 5 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698