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

Unified Diff: LayoutTests/fast/multicol/dynamic/spanner-becomes-abspos-crash.html

Issue 1162253006: An object may become a column spanner or cease to be one even if column-span doesn't change. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/multicol/dynamic/spanner-becomes-abspos-crash.html
diff --git a/LayoutTests/fast/multicol/dynamic/spanner-becomes-abspos-crash.html b/LayoutTests/fast/multicol/dynamic/spanner-becomes-abspos-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..73c744a480c57df6f07aaefcf79231634ad5552d
--- /dev/null
+++ b/LayoutTests/fast/multicol/dynamic/spanner-becomes-abspos-crash.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<p>Turn a column spanner into an absolutely positioned box.</p>
+<p>PASS if no crash or assertion failure.</p>
+<div style="-webkit-column-count:2;">
+ Text.
+ <div>
+ <div id="spanner" style="-webkit-column-span:all;"></div>
+ </div>
+ Text.
+ <span id="something" style="display:none;"></span>
+</div>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ document.body.offsetTop;
+ spanner.style.position = "absolute";
+
+ // Trigger another layout pass, now that the spanner should be
+ // gone. That element is now absolutely positioned, so it should
+ // have lost its spanner capabilities, since the combination of
+ // abspos and spanner isn't allowed.
+ document.body.offsetTop;
+ something.style.display = "inline";
+</script>

Powered by Google App Engine
This is Rietveld 408576698