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

Unified Diff: LayoutTests/fast/multicol/explicit-columns-auto.html

Issue 1145773002: Setting -webkit-column-count to auto is the same as not setting it. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: code review Created 5 years, 7 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 | LayoutTests/fast/multicol/explicit-columns-auto-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/multicol/explicit-columns-auto.html
diff --git a/LayoutTests/fast/multicol/explicit-columns-auto.html b/LayoutTests/fast/multicol/explicit-columns-auto.html
new file mode 100644
index 0000000000000000000000000000000000000000..4f97487611006ec1e0e1f829c9b068cf349669f1
--- /dev/null
+++ b/LayoutTests/fast/multicol/explicit-columns-auto.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<style>
+ .explicitlyNoColumns { -webkit-columns:auto; }
+</style>
+
+<div id="elm"></div>
+
+<script>
+ description("Test that setting columns to auto is the same as not setting it at all.");
+ document.body.offsetTop;
+ document.getElementById('elm').className = "explicitlyNoColumns";
+ if (window.internals) {
+ // Need to call updateStyleAndReturnAffectedElementCount() first, to get style recalculated,
+ // so that the necessary objects get marked for layout (which, if the test passes, should be 0).
+ shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
+ shouldBe("internals.needsLayoutCount()", "0");
+ } else {
+ testFailed("There's no web exposed API usable for this test. The bug doesn't affect layout in a reliable way. Please rerun inside the layout test framework.");
+ }
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/multicol/explicit-columns-auto-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698