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

Side by Side Diff: third_party/WebKit/LayoutTests/custom-properties/register-property-syntax-parsing.html

Issue 2917573002: CSS Custom Properties: Angles do not support unitless 0 (Closed)
Patch Set: remove obsolete test Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/custom-properties/register-property-syntax-parsing-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <script> 4 <script>
5 test_count = 0; 5 test_count = 0;
6 6
7 function assert_valid(syntax, initialValue) { 7 function assert_valid(syntax, initialValue) {
8 // No actual assertions, this just shouldn't throw 8 // No actual assertions, this just shouldn't throw
9 test(function() { 9 test(function() {
10 var name = '--syntax-test-' + (test_count++); 10 var name = '--syntax-test-' + (test_count++);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 assert_invalid("<length>+", "calc(2ex + 16px)"); 139 assert_invalid("<length>+", "calc(2ex + 16px)");
140 assert_invalid("<length>+", "10px calc(20px + 4rem)"); 140 assert_invalid("<length>+", "10px calc(20px + 4rem)");
141 assert_invalid("<percentage> | <length>+", "calc(100vh - 10px) 30px"); 141 assert_invalid("<percentage> | <length>+", "calc(100vh - 10px) 30px");
142 assert_invalid("<length>", "10px;"); 142 assert_invalid("<length>", "10px;");
143 assert_invalid("<length-percentage>", "calc(2px + 10% + 7ex)"); 143 assert_invalid("<length-percentage>", "calc(2px + 10% + 7ex)");
144 assert_invalid("<percentage>", "0"); 144 assert_invalid("<percentage>", "0");
145 assert_invalid("<integer>", "1.0"); 145 assert_invalid("<integer>", "1.0");
146 assert_invalid("<integer>", "1e0"); 146 assert_invalid("<integer>", "1e0");
147 assert_invalid("<number>|foo", "foo var(--foo, bla)"); 147 assert_invalid("<number>|foo", "foo var(--foo, bla)");
148 148
149 assert_invalid("<angle>", "0");
149 assert_invalid("<angle>", "10%"); 150 assert_invalid("<angle>", "10%");
150 assert_invalid("<time>", "2px"); 151 assert_invalid("<time>", "2px");
151 assert_invalid("<resolution>", "10"); 152 assert_invalid("<resolution>", "10");
152 assert_invalid("<transform-function>", "scale()"); 153 assert_invalid("<transform-function>", "scale()");
153 assert_invalid("<color>", "fancy-looking"); 154 assert_invalid("<color>", "fancy-looking");
154 assert_invalid("<image>", "banana.png"); 155 assert_invalid("<image>", "banana.png");
155 assert_invalid("<url>", "banana.png"); 156 assert_invalid("<url>", "banana.png");
156 </script> 157 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/custom-properties/register-property-syntax-parsing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698