| 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 ["rectangle(10px, 20px, 30px, 40px)", "rectangle(10px, 20px, 30px, 40px)", "
rectangle(10px, 20px, 30px, 40px, 0px, 0px)"], | 9 ["rectangle(10px, 20px, 30px, 40px)", "rectangle(10px, 20px, 30px, 40px)", "
rectangle(10px, 20px, 30px, 40px, 0px, 0px)"], |
| 10 ["rectangle(10px, 20px, 30px, 40px, 5px)", "rectangle(10px, 20px, 30px, 40px
, 5px)", "rectangle(10px, 20px, 30px, 40px, 5px, 5px)"], | 10 ["rectangle(10px, 20px, 30px, 40px, 5px)", "rectangle(10px, 20px, 30px, 40px
, 5px)", "rectangle(10px, 20px, 30px, 40px, 5px, 5px)"], |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 "circle(10px, 20px, 30px, 40px)", // FIXME: Remove this test once we do not
support the deprecated CSS Shapes syntax anymore. | 136 "circle(10px, 20px, 30px, 40px)", // FIXME: Remove this test once we do not
support the deprecated CSS Shapes syntax anymore. |
| 137 | 137 |
| 138 "circle(10px 20px)", | 138 "circle(10px 20px)", |
| 139 "circle(10px at 10px 10px 10px)", | 139 "circle(10px at 10px 10px 10px)", |
| 140 "circle(10px at 10px 10px at center)", | 140 "circle(10px at 10px 10px at center)", |
| 141 "circle(10px at center center 10px)", | 141 "circle(10px at center center 10px)", |
| 142 "circle(at 10px 10px 10px)", | 142 "circle(at 10px 10px 10px)", |
| 143 "circle(at 10px 10px at center)", | 143 "circle(at 10px 10px at center)", |
| 144 "circle(at center center 10px)", | 144 "circle(at center center 10px)", |
| 145 | 145 |
| 146 "circle(at 10px 10px closest-side)", |
| 147 |
| 146 "ellipse(10px, 20px)", // FIXME: Remove this test once we do not support the
deprecated CSS Shapes syntax anymore. | 148 "ellipse(10px, 20px)", // FIXME: Remove this test once we do not support the
deprecated CSS Shapes syntax anymore. |
| 147 "ellipse(10px, 20px, 30px)", // FIXME: Remove this test once we do not suppo
rt the deprecated CSS Shapes syntax anymore. | 149 "ellipse(10px, 20px, 30px)", // FIXME: Remove this test once we do not suppo
rt the deprecated CSS Shapes syntax anymore. |
| 148 "ellipse(10px 20px 30px 40px)", // FIXME: Remove this test once we do not su
pport the deprecated CSS Shapes syntax anymore. | 150 "ellipse(10px 20px 30px 40px)", // FIXME: Remove this test once we do not su
pport the deprecated CSS Shapes syntax anymore. |
| 149 | 151 |
| 150 "ellipse(10px 20px 30px)", | 152 "ellipse(10px 20px 30px)", |
| 151 "ellipse(10px at 10px 10px 10px)", | 153 "ellipse(10px at 10px 10px 10px)", |
| 152 "ellipse(10px at 10px 10px at center)", | 154 "ellipse(10px at 10px 10px at center)", |
| 153 "ellipse(10px at center center 10px)", | 155 "ellipse(10px at center center 10px)", |
| 154 "ellipse(10px 20px 30px at center center 10px)", | 156 "ellipse(10px 20px 30px at center center 10px)", |
| 155 "ellipse(at 10px 10px 10px)", | 157 "ellipse(at 10px 10px 10px)", |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 281 |
| 280 function testNotInheritedShapeProperty(property, parentValue, childValue, expect
edValue) | 282 function testNotInheritedShapeProperty(property, parentValue, childValue, expect
edValue) |
| 281 { | 283 { |
| 282 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property +
'", "' + parentValue + '", "' + childValue + '")', expectedValue); | 284 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property +
'", "' + parentValue + '", "' + childValue + '")', expectedValue); |
| 283 } | 285 } |
| 284 | 286 |
| 285 function applyToEachArglist(testFunction, arglists) | 287 function applyToEachArglist(testFunction, arglists) |
| 286 { | 288 { |
| 287 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist);
}); | 289 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist);
}); |
| 288 } | 290 } |
| OLD | NEW |