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

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

Issue 255193002: [CSS Shapes] complex calc args for inset round vanish (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove unneeded one parameter LengthSize version Created 6 years, 7 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 22 matching lines...) Expand all
33 "inset(10px round 9px 8px 7px 6px / 5px 4px)", 33 "inset(10px round 9px 8px 7px 6px / 5px 4px)",
34 "inset(10px round 9px 8px 7px 6px / 5px 4px 3px)", 34 "inset(10px round 9px 8px 7px 6px / 5px 4px 3px)",
35 "inset(10px round 9px 8px 7px 6px / 5px 4px 3px 2px)", 35 "inset(10px round 9px 8px 7px 6px / 5px 4px 3px 2px)",
36 ["inset(10px round 10px 20px 30px 20px)", "inset(10px round 10px 20px 30px)" ], 36 ["inset(10px round 10px 20px 30px 20px)", "inset(10px round 10px 20px 30px)" ],
37 ["inset(10px round 10px 20px 10px 20px)", "inset(10px round 10px 20px)"], 37 ["inset(10px round 10px 20px 10px 20px)", "inset(10px round 10px 20px)"],
38 "inset(10px 20px 30px 40px round 5px 6px)", 38 "inset(10px 20px 30px 40px round 5px 6px)",
39 "inset(10px 20px 30px 40px round 5px 6px 7px 8px / 50px 60px 70px 80px)", 39 "inset(10px 20px 30px 40px round 5px 6px 7px 8px / 50px 60px 70px 80px)",
40 "inset(10px round 0px / 10px)", 40 "inset(10px round 0px / 10px)",
41 41
42 ["inset(calc(25%*3 - 10in) 0 0 0)", "inset(calc(75% - 10in) 0px 0px)", "inse t(calc(-960px + 75%) 0px 0px)"], 42 ["inset(calc(25%*3 - 10in) 0 0 0)", "inset(calc(75% - 10in) 0px 0px)", "inse t(calc(-960px + 75%) 0px 0px)"],
43 ["inset(10px 10px 10px 10px round calc(25%*3 - 10in))", "inset(10px round ca lc(75% - 10in))", "inset(10px round calc(-960px + 75%))"],
43 44
44 ["circle()", "circle(at 50% 50%)", "circle(closest-side at 50% 50%)"], 45 ["circle()", "circle(at 50% 50%)", "circle(closest-side at 50% 50%)"],
45 ["circle(farthest-side)", "circle(farthest-side at 50% 50%)"], 46 ["circle(farthest-side)", "circle(farthest-side at 50% 50%)"],
46 ["circle(closest-side)", "circle(closest-side at 50% 50%)"], 47 ["circle(closest-side)", "circle(closest-side at 50% 50%)"],
47 ["circle(10px)", "circle(10px at 50% 50%)"], 48 ["circle(10px)", "circle(10px at 50% 50%)"],
48 ["circle(10px at 10px)", "circle(10px at 10px 50%)"], 49 ["circle(10px at 10px)", "circle(10px at 10px 50%)"],
49 "circle(10px at 10px 10px)", 50 "circle(10px at 10px 10px)",
50 ["circle(at 10px)", "circle(at 10px 50%)", "circle(closest-side at 10px 50%) "], 51 ["circle(at 10px)", "circle(at 10px 50%)", "circle(closest-side at 10px 50%) "],
51 ["circle(at 10px 10px)", "circle(at 10px 10px)", "circle(closest-side at 10p x 10px)"], 52 ["circle(at 10px 10px)", "circle(at 10px 10px)", "circle(closest-side at 10p x 10px)"],
52 ["circle(at top left)", "circle(at 0% 0%)", "circle(closest-side at 0% 0%)"] , 53 ["circle(at top left)", "circle(at 0% 0%)", "circle(closest-side at 0% 0%)"] ,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 265
265 function testNotInheritedShapeProperty(property, parentValue, childValue, expect edValue) 266 function testNotInheritedShapeProperty(property, parentValue, childValue, expect edValue)
266 { 267 {
267 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property + '", "' + parentValue + '", "' + childValue + '")', expectedValue); 268 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property + '", "' + parentValue + '", "' + childValue + '")', expectedValue);
268 } 269 }
269 270
270 function applyToEachArglist(testFunction, arglists) 271 function applyToEachArglist(testFunction, arglists)
271 { 272 {
272 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist); }); 273 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist); });
273 } 274 }
OLDNEW
« no previous file with comments | « LayoutTests/fast/shapes/parsing/parsing-shape-outside-expected.txt ('k') | Source/core/css/BasicShapeFunctions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698