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

Side by Side Diff: LayoutTests/fast/dynamic/position-change-to-absolute-with-positioned-child-crash.html

Issue 1181983002: Ensure that positioned objects' list is always in parent first order (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More comprehensive test cases Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/layout/LayoutBlock.cpp » ('j') | Source/core/layout/LayoutBlock.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <div id="log"></div>
5 <div id="container">
6 <p id="description">
7 This tests that changing the container's position from fixed or relative to absolute is safe,<br>
8 when child container with fixed position is present.<br>
9 PASS, if no crash or assert in debug.
10 </p>
11 </div>
12 <script>
13 var valueList = ["static", "relative", "absolute", "fixed"]
14 for (var outerBeforeValue of valueList) {
15 for (var innerValue of valueList) {
16 for (var outerAfterValue of valueList) {
17 if (outerBeforeValue === outerAfterValue)
18 continue;
19 var outerElement = document.createElement("div");
20 var innerElement = document.createElement("div");
21 outerElement.style.position = outerBeforeValue;
22 innerElement.style.position = innerValue;
23 outerElement.appendChild(innerElement);
24 container.appendChild(outerElement);
25 test(function () {
26 document.body.offsetHeight;
27 outerElement.style.position = outerAfterValue;
28 // No assert() are needed, we just check layout hits no ASSERT n or crash.
29 document.body.offsetHeight;
30 }, "position:" + outerBeforeValue + " with a " + innerValue + " chil d to " + outerAfterValue);
31 }
32 }
33 }
34 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/LayoutBlock.cpp » ('j') | Source/core/layout/LayoutBlock.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698