Index: LayoutTests/fast/multicol/span/table-caption-crash.html |
diff --git a/LayoutTests/fast/multicol/span/table-caption-crash.html b/LayoutTests/fast/multicol/span/table-caption-crash.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..30dcb9e539fb98f5c9f47b758ee54c01cd78ceba |
--- /dev/null |
+++ b/LayoutTests/fast/multicol/span/table-caption-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-caption isn't allowed to become a spanner. |
+ document.getElementById("invalid-spanner").style.display = "table-caption"; |
+ |
+ onload = function() { |
+ document.body.offsetTop; |
+ document.getElementById("invalid-spanner").style.webkitColumnSpan = "none"; |
+ } |
+</script> |