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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/shapes/parsing/parsing-test-utils.js

Issue 1698913002: Add support for repeating-radial-gradient() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Valid values for both shape-inside and shape-outside. Two values are specifie d when the shape property value 1 // Valid values for both shape-inside and shape-outside. Two values are specifie d when the shape property value
2 // differs from the specified value. Three values are specified when the compute d shape property value differs 2 // differs from the specified value. Three values are specified when the compute d shape property value differs
3 // from the specified value. 3 // from the specified value.
4 // eg: "specified value/CSS Text value/computed style value" 4 // eg: "specified value/CSS Text value/computed style value"
5 // or: ["specified value", "CSS Text value/computed style value"] 5 // or: ["specified value", "CSS Text value/computed style value"]
6 // or: ["specified value", "CSS Text value", "Computed style value"] 6 // or: ["specified value", "CSS Text value", "Computed style value"]
7 var validShapeValues = [ 7 var validShapeValues = [
8 "none", 8 "none",
9 9
10 "inset(10px)", 10 "inset(10px)",
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) padding-box", "polygon(1 0px 10px, 20px 20px, 30px 30px) padding-box"], 95 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) padding-box", "polygon(1 0px 10px, 20px 20px, 30px 30px) padding-box"],
96 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) border-box", "polygon(1 0px 10px, 20px 20px, 30px 30px) border-box"], 96 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) border-box", "polygon(1 0px 10px, 20px 20px, 30px 30px) border-box"],
97 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) margin-box", "polygon(1 0px 10px, 20px 20px, 30px 30px) margin-box"], 97 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) margin-box", "polygon(1 0px 10px, 20px 20px, 30px 30px) margin-box"],
98 98
99 ["content-box polygon(nonzero, 10px 10px, 20px 20px, 30px 30px)", "content-b ox polygon(10px 10px, 20px 20px, 30px 30px)", "polygon(10px 10px, 20px 20px, 30p x 30px) content-box"], 99 ["content-box polygon(nonzero, 10px 10px, 20px 20px, 30px 30px)", "content-b ox polygon(10px 10px, 20px 20px, 30px 30px)", "polygon(10px 10px, 20px 20px, 30p x 30px) content-box"],
100 ["padding-box polygon(nonzero, 10px 10px, 20px 20px, 30px 30px)", "padding-b ox polygon(10px 10px, 20px 20px, 30px 30px)", "polygon(10px 10px, 20px 20px, 30p x 30px) padding-box"], 100 ["padding-box polygon(nonzero, 10px 10px, 20px 20px, 30px 30px)", "padding-b ox polygon(10px 10px, 20px 20px, 30px 30px)", "polygon(10px 10px, 20px 20px, 30p x 30px) padding-box"],
101 ["border-box polygon(nonzero, 10px 10px, 20px 20px, 30px 30px)", "border-box polygon(10px 10px, 20px 20px, 30px 30px)", "polygon(10px 10px, 20px 20px, 30px 30px) border-box"], 101 ["border-box polygon(nonzero, 10px 10px, 20px 20px, 30px 30px)", "border-box polygon(10px 10px, 20px 20px, 30px 30px)", "polygon(10px 10px, 20px 20px, 30px 30px) border-box"],
102 ["margin-box polygon(nonzero, 10px 10px, 20px 20px, 30px 30px)", "margin-box polygon(10px 10px, 20px 20px, 30px 30px)", "polygon(10px 10px, 20px 20px, 30px 30px) margin-box"], 102 ["margin-box polygon(nonzero, 10px 10px, 20px 20px, 30px 30px)", "margin-box polygon(10px 10px, 20px 20px, 30px 30px)", "polygon(10px 10px, 20px 20px, 30px 30px) margin-box"],
103 103
104 "linear-gradient(to right, red, blue)", 104 "linear-gradient(to right, red, blue)",
105 "radial-gradient(at 10px 20px, red 0%, blue 50%, green 95%)" 105 "radial-gradient(at 10px 20px, red 0%, blue 50%, green 95%)",
106 "repeating-radial-gradient(white 80%, black)",
106 ]; 107 ];
107 108
108 // Invalid values for both shape-inside and shape-outside. When an invalid shape value is specified, the 109 // Invalid values for both shape-inside and shape-outside. When an invalid shape value is specified, the
109 // shape property's computed value is the same as its default. 110 // shape property's computed value is the same as its default.
110 var invalidShapeValues = [ 111 var invalidShapeValues = [
111 "calc()", 112 "calc()",
112 "auto", 113 "auto",
113 114
114 "inset()", 115 "inset()",
115 "inset(10px, 10px)", 116 "inset(10px, 10px)",
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 274
274 function testNotInheritedShapeProperty(property, parentValue, childValue, expect edValue) 275 function testNotInheritedShapeProperty(property, parentValue, childValue, expect edValue)
275 { 276 {
276 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property + '", "' + parentValue + '", "' + childValue + '")', expectedValue); 277 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property + '", "' + parentValue + '", "' + childValue + '")', expectedValue);
277 } 278 }
278 279
279 function applyToEachArglist(testFunction, arglists) 280 function applyToEachArglist(testFunction, arglists)
280 { 281 {
281 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist); }); 282 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist); });
282 } 283 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698