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

Unified Diff: LayoutTests/fast/multicol/dynamic/insert-block-into-inline-beside-ex-spanner-table-column.html

Issue 880113002: Fix crash when establishing an inline continuation inside a block continuation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove assertion in LayoutTable::addChildIgnoringContinuation() - crashed fast/table/crash-bad-chil… 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/multicol/dynamic/insert-block-into-inline-beside-ex-spanner-table-column.html
diff --git a/LayoutTests/fast/multicol/dynamic/insert-block-into-inline-beside-ex-spanner-table-column.html b/LayoutTests/fast/multicol/dynamic/insert-block-into-inline-beside-ex-spanner-table-column.html
new file mode 100644
index 0000000000000000000000000000000000000000..26605b26e5f77dffa5c696ad07eda3458a537c06
--- /dev/null
+++ b/LayoutTests/fast/multicol/dynamic/insert-block-into-inline-beside-ex-spanner-table-column.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+<p>With a multicol container that has a block and with a spanner inside, do the following:</p>
+<ol>
+ <li>Insert an inline right before the spanner</li>
+ <li>Turn the spanner into a table-column</li>
+ <li>Insert an inline child into the previously inserted inline</li>
+ <li>Set column-span:none on the ex-spanner (now table-column)</li>
+ <li>Insert a block into the previously inserted inline child</li>
+</ol>
+<p>The word 'PASS' should be seen below.</p>
+<div style="-webkit-column-count:2;">
+ <div>
+ <span id="inline" style="display:none;">
+ <emph id="tCF74" style="display:none;">
+ <footer id="tCF33" style="display:none;">PASS</footer>
+ </emph>
+ </span>
+ <div id="spanner" style="-webkit-column-span:all;"></div>
+ </div>
+</div>
+
+<script>
+ document.body.offsetTop;
+ document.getElementById("inline").style.display = "inline";
+
+ // Note that a table-column isn't allowed to become a spanner.
+ document.getElementById("spanner").style.display = "table-column";
+
+ document.body.offsetTop;
+ tCF74.style.display = '';
+ document.getElementById("spanner").style.webkitColumnSpan = "none";
+ tCF33.style.display = '';
+</script>

Powered by Google App Engine
This is Rietveld 408576698