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

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

Issue 2375353004: CSS Properties and Values API: Reject CSS-wide keywords in syntax string (Closed)
Patch Set: moo Created 4 years, 2 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 assert_invalid("<length> +", "10px"); 99 assert_invalid("<length> +", "10px");
100 100
101 assert_invalid("<length>++", "10px"); 101 assert_invalid("<length>++", "10px");
102 assert_invalid("<length> | *", "10px"); 102 assert_invalid("<length> | *", "10px");
103 assert_invalid("*|banana", "banana"); 103 assert_invalid("*|banana", "banana");
104 assert_invalid("*+", "banana"); 104 assert_invalid("*+", "banana");
105 105
106 assert_invalid("initial", "initial"); 106 assert_invalid("initial", "initial");
107 assert_invalid("<length>|initial", "10px"); 107 assert_invalid("<length>|initial", "10px");
108 assert_invalid("<length>|INHERIT", "10px"); 108 assert_invalid("<length>|INHERIT", "10px");
109 assert_invalid("<percentage>|defAult", "2%");
109 110
110 // Invalid initialValue 111 // Invalid initialValue
111 assert_invalid("*", "initial"); 112 assert_invalid("*", "initial");
112 assert_invalid("*", "inherit"); 113 assert_invalid("*", "inherit");
113 assert_invalid("*", "unset"); 114 assert_invalid("*", "unset");
114 assert_invalid("*", "revert"); 115 assert_invalid("*", "revert");
115 assert_invalid("<custom-ident>", "initial"); 116 assert_invalid("<custom-ident>", "initial");
116 assert_invalid("<custom-ident>+", "foo inherit bar"); 117 assert_invalid("<custom-ident>+", "foo inherit bar");
117 118
118 assert_invalid("*", ")"); 119 assert_invalid("*", ")");
(...skipping 26 matching lines...) Expand all
145 assert_invalid("<number>|foo", "foo var(--foo, bla)"); 146 assert_invalid("<number>|foo", "foo var(--foo, bla)");
146 147
147 assert_invalid("<angle>", "10%"); 148 assert_invalid("<angle>", "10%");
148 assert_invalid("<time>", "2px"); 149 assert_invalid("<time>", "2px");
149 assert_invalid("<resolution>", "10"); 150 assert_invalid("<resolution>", "10");
150 assert_invalid("<transform-function>", "scale()"); 151 assert_invalid("<transform-function>", "scale()");
151 assert_invalid("<color>", "fancy-looking"); 152 assert_invalid("<color>", "fancy-looking");
152 assert_invalid("<image>", "banana.png"); 153 assert_invalid("<image>", "banana.png");
153 assert_invalid("<url>", "banana.png"); 154 assert_invalid("<url>", "banana.png");
154 </script> 155 </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