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

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: Created 7 years, 8 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/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..5aab58ccd7430e3ffc908b77e33fb07ede0a194a
--- /dev/null
+++ b/LayoutTests/fast/multicol/columns-shorthand-parsing-2.html
@@ -0,0 +1,59 @@
+<!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();
+ </script>
+ </head>
+ <body>
+ <div id="elm1" style="-webkit-columns:auto 3;"></div>
+ <div id="elm2" style="-webkit-columns:auto 10em;"></div>
+ <div id="elm3" style="-webkit-columns:3 auto;"></div>
+ <div id="elm4" style="-webkit-columns:10em auto;"></div>
+ <div id="elm5" style="-webkit-columns:7 7em; -webkit-columns:auto auto auto;"></div>
+ <div id="elm6" style="-webkit-columns:7 7em; -webkit-columns:10em auto auto;"></div>
+ <div id="elm7" style="-webkit-columns:7 7em; -webkit-columns:auto;"></div>
+ <div id="elm8" style="-webkit-columns:7 7em; -webkit-columns:auto auto;"></div>
+ <div id="elm9" style="-webkit-columns:auto; -webkit-columns:initial;"></div>
+ <div id="elm10" style="-webkit-columns:auto; -webkit-columns:initial initial;"></div>
+ <div id="elm11" style="-webkit-columns:auto; -webkit-columns:inherit;"></div>
+ <div id="elm12" style="-webkit-columns:auto; -webkit-columns:inherit inherit;"></div>
+ <div id="elm13" style="-webkit-columns:7;"></div>
+ <div id="elm14" style="-webkit-columns:7em;"></div>
+ <script>
+ shouldBeEqualToString("document.getElementById('elm1').style.WebkitColumnWidth", "auto");
Julien - ping for review 2013/07/23 00:56:29 It would be more readable to move the repeated tes
mstensho (USE GERRIT) 2013/07/23 14:19:07 Done. I think I want to keep using Element.style;
+ shouldBeEqualToString("document.getElementById('elm1').style.WebkitColumnCount", "3");
+ shouldBeEqualToString("document.getElementById('elm2').style.WebkitColumnWidth", "10em");
+ shouldBeEqualToString("document.getElementById('elm2').style.WebkitColumnCount", "auto");
+ shouldBeEqualToString("document.getElementById('elm3').style.WebkitColumnWidth", "auto");
+ shouldBeEqualToString("document.getElementById('elm3').style.WebkitColumnCount", "3");
+ shouldBeEqualToString("document.getElementById('elm4').style.WebkitColumnWidth", "10em");
+ shouldBeEqualToString("document.getElementById('elm4').style.WebkitColumnCount", "auto");
+ shouldBeEqualToString("document.getElementById('elm5').style.WebkitColumnWidth", "7em");
+ shouldBeEqualToString("document.getElementById('elm5').style.WebkitColumnCount", "7");
+ shouldBeEqualToString("document.getElementById('elm6').style.WebkitColumnWidth", "7em");
+ shouldBeEqualToString("document.getElementById('elm6').style.WebkitColumnCount", "7");
+ shouldBeEqualToString("document.getElementById('elm7').style.WebkitColumnWidth", "auto");
+ shouldBeEqualToString("document.getElementById('elm7').style.WebkitColumnCount", "auto");
+ shouldBeEqualToString("document.getElementById('elm8').style.WebkitColumnWidth", "auto");
+ shouldBeEqualToString("document.getElementById('elm8').style.WebkitColumnCount", "auto");
+ shouldBeEqualToString("document.getElementById('elm9').style.WebkitColumnCount", "initial");
+ shouldBeEqualToString("document.getElementById('elm9').style.WebkitColumnWidth", "initial");
+ shouldBeEqualToString("document.getElementById('elm10').style.WebkitColumnCount", "auto");
+ shouldBeEqualToString("document.getElementById('elm10').style.WebkitColumnWidth", "auto");
+ shouldBeEqualToString("document.getElementById('elm11').style.WebkitColumnCount", "inherit");
+ shouldBeEqualToString("document.getElementById('elm11').style.WebkitColumnWidth", "inherit");
+ shouldBeEqualToString("document.getElementById('elm12').style.WebkitColumnCount", "auto");
+ shouldBeEqualToString("document.getElementById('elm12').style.WebkitColumnWidth", "auto");
+ shouldBeEqualToString("document.getElementById('elm13').style.WebkitColumnCount", "7");
+ shouldBeEqualToString("document.getElementById('elm13').style.WebkitColumnWidth", "initial");
+ shouldBeEqualToString("document.getElementById('elm14').style.WebkitColumnCount", "initial");
+ shouldBeEqualToString("document.getElementById('elm14').style.WebkitColumnWidth", "7em");
+ </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') | Source/core/css/CSSParser.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698