| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 "circle(10px 20px)", | 140 "circle(10px 20px)", |
| 141 "circle(10px at 10px 10px 10px)", | 141 "circle(10px at 10px 10px 10px)", |
| 142 "circle(10px at 10px 10px at center)", | 142 "circle(10px at 10px 10px at center)", |
| 143 "circle(10px at center center 10px)", | 143 "circle(10px at center center 10px)", |
| 144 "circle(at 10px 10px 10px)", | 144 "circle(at 10px 10px 10px)", |
| 145 "circle(at 10px 10px at center)", | 145 "circle(at 10px 10px at center)", |
| 146 "circle(at center center 10px)", | 146 "circle(at center center 10px)", |
| 147 | 147 |
| 148 "circle(at 10px 10px closest-side)", | 148 "circle(at 10px 10px closest-side)", |
| 149 "circle(10px at)", |
| 150 "circle(at)", |
| 149 | 151 |
| 150 "ellipse(10px, 20px)", // FIXME: Remove this test once we do not support the
deprecated CSS Shapes syntax anymore. | 152 "ellipse(10px, 20px)", // FIXME: Remove this test once we do not support the
deprecated CSS Shapes syntax anymore. |
| 151 "ellipse(10px, 20px, 30px)", // FIXME: Remove this test once we do not suppo
rt the deprecated CSS Shapes syntax anymore. | 153 "ellipse(10px, 20px, 30px)", // FIXME: Remove this test once we do not suppo
rt the deprecated CSS Shapes syntax anymore. |
| 152 "ellipse(10px 20px 30px 40px)", // FIXME: Remove this test once we do not su
pport the deprecated CSS Shapes syntax anymore. | 154 "ellipse(10px 20px 30px 40px)", // FIXME: Remove this test once we do not su
pport the deprecated CSS Shapes syntax anymore. |
| 153 | 155 |
| 154 "ellipse(10px 20px 30px)", | 156 "ellipse(10px 20px 30px)", |
| 155 "ellipse(10px at 10px 10px 10px)", | 157 "ellipse(10px at 10px 10px 10px)", |
| 156 "ellipse(10px at 10px 10px at center)", | 158 "ellipse(10px at 10px 10px at center)", |
| 157 "ellipse(10px at center center 10px)", | 159 "ellipse(10px at center center 10px)", |
| 158 "ellipse(10px 20px 30px at center center 10px)", | 160 "ellipse(10px 20px 30px at center center 10px)", |
| 159 "ellipse(at 10px 10px 10px)", | 161 "ellipse(at 10px 10px 10px)", |
| 160 "ellipse(at 10px 10px at center)", | 162 "ellipse(at 10px 10px at center)", |
| 161 "ellipse(at center center 10px)", | 163 "ellipse(at center center 10px)", |
| 164 "ellipse(10px 20px at)", |
| 165 "ellipse(at)", |
| 162 | 166 |
| 163 "polygon()", | 167 "polygon()", |
| 164 "polygon(evenodd 10px 20px, 30px 40px, 40px 50px)", | 168 "polygon(evenodd 10px 20px, 30px 40px, 40px 50px)", |
| 165 "polygon(nonzero 10px 20px, 30px 40px, 40px 50px)", | 169 "polygon(nonzero 10px 20px, 30px 40px, 40px 50px)", |
| 166 "polygon(nonzero)", | 170 "polygon(nonzero)", |
| 167 "polygon(evenodd)", | 171 "polygon(evenodd)", |
| 168 "polygon(10px)", | 172 "polygon(10px)", |
| 169 "polygon(nonzero,10px)", | 173 "polygon(nonzero,10px)", |
| 170 "polygon(evenodd,12px)", | 174 "polygon(evenodd,12px)", |
| 171 "polygon(10px, 20px, 30px, 40px, 40px, 50px)", | 175 "polygon(10px, 20px, 30px, 40px, 40px, 50px)", |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 287 |
| 284 function testNotInheritedShapeProperty(property, parentValue, childValue, expect
edValue) | 288 function testNotInheritedShapeProperty(property, parentValue, childValue, expect
edValue) |
| 285 { | 289 { |
| 286 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property +
'", "' + parentValue + '", "' + childValue + '")', expectedValue); | 290 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property +
'", "' + parentValue + '", "' + childValue + '")', expectedValue); |
| 287 } | 291 } |
| 288 | 292 |
| 289 function applyToEachArglist(testFunction, arglists) | 293 function applyToEachArglist(testFunction, arglists) |
| 290 { | 294 { |
| 291 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist);
}); | 295 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist);
}); |
| 292 } | 296 } |
| OLD | NEW |