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

Unified Diff: LayoutTests/fast/multicol/columns-shorthand-parsing-2.html

Issue 14334014: Parse "-webkit-columns: auto <length>" properly. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Compile fix Created 7 years, 5 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/columns-shorthand-parsing-2-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/multicol/columns-shorthand-parsing-2.html
diff --git a/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html b/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..59f0bac8922a6e88a3eaa3bbe81d24e8469f9287
--- /dev/null
+++ b/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>'columns' property with 'auto' and something else</title>
+ <script src="../js/resources/js-test-pre.js"></script>
+ <script>
+ description("Test the behavior when 'auto' is part of the 'columns' property value. See http://www.w3.org/TR/css3-multicol/#columns");
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ function runTests() {
+ var tests = [["-webkit-columns:auto 3;", "auto", "3", "auto 3"],
+ ["-webkit-columns:auto 10em;", "10em", "auto", "10em auto"],
+ ["-webkit-columns:3 auto;", "auto", "3", "auto 3"],
+ ["-webkit-columns:10em auto;", "10em", "auto", "10em auto"],
+ ["-webkit-columns:7 7em; -webkit-columns:auto auto auto;", "7em", "7", "7em 7"],
+ ["-webkit-columns:7 7em; -webkit-columns:10em auto auto;", "7em", "7", "7em 7"],
+ ["-webkit-columns:7 7em; -webkit-columns:auto;", "auto", "auto", "auto"],
+ ["-webkit-columns:7 7em; -webkit-columns:auto auto;", "auto", "auto", "auto auto"],
+ ["-webkit-columns:auto; -webkit-columns:initial;", "initial", "initial", "initial"],
+ ["-webkit-columns:auto; -webkit-columns:initial initial;", "auto", "auto", "auto"],
+ ["-webkit-columns:auto; -webkit-columns:inherit;", "inherit", "inherit", "inherit"],
+ ["-webkit-columns:auto; -webkit-columns:inherit inherit;", "auto", "auto", "auto"],
+ ["-webkit-columns:7;", "auto", "7", "7"],
+ ["-webkit-columns:7em;", "7em", "auto", "7em"]];
+
+ tests.forEach(function(test) {
+ element.style.cssText = test[0];
+ shouldBeEqualToString("element.style.WebkitColumnWidth", test[1]);
+ shouldBeEqualToString("element.style.WebkitColumnCount", test[2]);
+ shouldBeEqualToString("element.style.WebkitColumns", test[3]);
+ });
+ }
+ </script>
+ </head>
+ <body>
+ <div id="element"></div>
+ <script>
+ runTests();
+ </script>
+ <script src="../js/resources/js-test-post.js"></script>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/multicol/columns-shorthand-parsing-2-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698