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

Unified Diff: LayoutTests/fast/multicol/span/table-row-crash.html

Issue 809193002: Don't apply column-span:all for display:table-* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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/span/table-row-crash.html
diff --git a/LayoutTests/fast/multicol/span/table-row-crash.html b/LayoutTests/fast/multicol/span/table-row-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..f2116dc30f02cad64c705b8fad620faa09be50f0
--- /dev/null
+++ b/LayoutTests/fast/multicol/span/table-row-crash.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+</script>
+<style>
+#invalid-spanner { display:none; -webkit-column-span:all; }
+</style>
+
+Test passes if it does not CRASH.
+<div style="-webkit-column-count:1;">
+ <div>
+ <span id="inline" style="display:none;"></span>
+ <div id="invalid-spanner"></div>
+ </div>
+</div>
+
+<script>
+ document.body.offsetTop;
+ document.getElementById("inline").style.display = "inline";
+
+ // Note that a table-row isn't allowed to become a spanner.
+ document.getElementById("invalid-spanner").style.display = "table-row";
+
+ onload = function() {
+ document.body.offsetTop;
+ document.getElementById("invalid-spanner").style.webkitColumnSpan = "none";
+ }
+</script>

Powered by Google App Engine
This is Rietveld 408576698