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

Unified Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item.html

Issue 2748983003: [css-grid] Fix crash removing positioned grid item (Closed)
Patch Set: Early return, improved test and more comments Created 3 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 | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item.html
diff --git a/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item.html b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item.html
new file mode 100644
index 0000000000000000000000000000000000000000..c5afdf0980d9fdb99b4b196cee1e678129adc29d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+<p>crbug.com/700383 - [css-grid] Grid layouts go mostly blank</p>
+<p>This test has PASSED if it does not CRASH on debug.</p>
+<div id="grid" style="display: grid;">
+ <!-- This grid item with some text is needed,
+ otherwise LayoutGrid::paintChildren() won't be called
+ after removing the positioned item. -->
+ <div>item</div>
+</div>
+<script>
+ var abspositem = document.createElement("div");
+ abspositem.style.position = "absolute";
+ var grid = document.getElementById("grid");
+ grid.appendChild(abspositem);
+ document.body.offsetLeft;
+ grid.removeChild(abspositem);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css-grid-layout/grid-crash-remove-positioned-item-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698