| OLD | NEW |
| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 "margin-box", | 86 "margin-box", |
| 87 | 87 |
| 88 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) content-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) content-box"], | 88 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) content-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) content-box"], |
| 89 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) padding-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) padding-box"], | 89 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) padding-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) padding-box"], |
| 90 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) border-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) border-box"], | 90 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) border-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) border-box"], |
| 91 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) margin-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) margin-box"], | 91 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) margin-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) margin-box"], |
| 92 | 92 |
| 93 ["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"], | 93 ["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"], |
| 94 ["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"], | 94 ["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"], |
| 95 ["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"], | 95 ["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"], |
| 96 ["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"] | 96 ["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"], |
| 97 |
| 98 "linear-gradient(to right, red, blue)", |
| 99 "radial-gradient(at 10px 20px, red 0%, blue 50%, green 95%)" |
| 97 ]; | 100 ]; |
| 98 | 101 |
| 99 // Invalid values for both shape-inside and shape-outside. When an invalid shape
value is specified, the | 102 // Invalid values for both shape-inside and shape-outside. When an invalid shape
value is specified, the |
| 100 // shape property's computed value is the same as its default. | 103 // shape property's computed value is the same as its default. |
| 101 var invalidShapeValues = [ | 104 var invalidShapeValues = [ |
| 102 "calc()", | 105 "calc()", |
| 103 "auto", | 106 "auto", |
| 104 | 107 |
| 105 "inset()", | 108 "inset()", |
| 106 "inset(10px, 10px)", | 109 "inset(10px, 10px)", |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 267 |
| 265 function testNotInheritedShapeProperty(property, parentValue, childValue, expect
edValue) | 268 function testNotInheritedShapeProperty(property, parentValue, childValue, expect
edValue) |
| 266 { | 269 { |
| 267 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property +
'", "' + parentValue + '", "' + childValue + '")', expectedValue); | 270 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property +
'", "' + parentValue + '", "' + childValue + '")', expectedValue); |
| 268 } | 271 } |
| 269 | 272 |
| 270 function applyToEachArglist(testFunction, arglists) | 273 function applyToEachArglist(testFunction, arglists) |
| 271 { | 274 { |
| 272 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist);
}); | 275 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist);
}); |
| 273 } | 276 } |
| OLD | NEW |