| 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)", "inset(10px 10px 10px 10px)", "inset(10px 10px 10px 10px rou
nd 0px 0px 0px 0px / 0px 0px 0px 0px)"], | 10 ["inset(10px)", "inset(10px 10px 10px 10px)", "inset(10px 10px 10px 10px rou
nd 0px 0px 0px 0px / 0px 0px 0px 0px)"], |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 ["ellipse(10px at left top 10px)", "ellipse(10px at 0% 10px)", "ellipse(10px
closest-side at 0% 10px)"], | 62 ["ellipse(10px at left top 10px)", "ellipse(10px at 0% 10px)", "ellipse(10px
closest-side at 0% 10px)"], |
| 63 ["ellipse(10px at top 10px left 10px)", "ellipse(10px at 10px 10px)", "ellip
se(10px closest-side at 10px 10px)"], | 63 ["ellipse(10px at top 10px left 10px)", "ellipse(10px at 10px 10px)", "ellip
se(10px closest-side at 10px 10px)"], |
| 64 ["ellipse(10px at right 10px bottom 10px)", "ellipse(10px at right 10px bott
om 10px)", "ellipse(10px closest-side at right 10px bottom 10px)"], | 64 ["ellipse(10px at right 10px bottom 10px)", "ellipse(10px at right 10px bott
om 10px)", "ellipse(10px closest-side at right 10px bottom 10px)"], |
| 65 ["ellipse(10px 20px at left top 10px)", "ellipse(10px 20px at 0% 10px)"], | 65 ["ellipse(10px 20px at left top 10px)", "ellipse(10px 20px at 0% 10px)"], |
| 66 ["ellipse(10px 20px at top 10px left 10px)", "ellipse(10px 20px at 10px 10px
)"], | 66 ["ellipse(10px 20px at top 10px left 10px)", "ellipse(10px 20px at 10px 10px
)"], |
| 67 ["ellipse(10px 20px at right 10px bottom 10px)", "ellipse(10px 20px at right
10px bottom 10px)"], | 67 ["ellipse(10px 20px at right 10px bottom 10px)", "ellipse(10px 20px at right
10px bottom 10px)"], |
| 68 | 68 |
| 69 ["polygon(10px 20px, 30px 40px, 40px 50px)", "polygon(10px 20px, 30px 40px,
40px 50px)"], | 69 ["polygon(10px 20px, 30px 40px, 40px 50px)", "polygon(10px 20px, 30px 40px,
40px 50px)"], |
| 70 ["polygon(evenodd, 10px 20px, 30px 40px, 40px 50px)", "polygon(evenodd, 10px
20px, 30px 40px, 40px 50px)"], | 70 ["polygon(evenodd, 10px 20px, 30px 40px, 40px 50px)", "polygon(evenodd, 10px
20px, 30px 40px, 40px 50px)"], |
| 71 ["polygon(nonzero, 10px 20px, 30px 40px, 40px 50px)", "polygon(10px 20px, 30
px 40px, 40px 50px)"], | 71 ["polygon(nonzero, 10px 20px, 30px 40px, 40px 50px)", "polygon(10px 20px, 30
px 40px, 40px 50px)"], |
| 72 ["polygon(10px calc(10in))", "polygon(10px calc(10in))", "polygon(10px 960px
)"], |
| 73 ["polygon(calc(10in) 10px)", "polygon(calc(10in) 10px)", "polygon(960px 10px
)"], |
| 72 | 74 |
| 73 "content-box", | 75 "content-box", |
| 74 "padding-box", | 76 "padding-box", |
| 75 "border-box", | 77 "border-box", |
| 76 "margin-box", | 78 "margin-box", |
| 77 | 79 |
| 78 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) content-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) content-box"], | 80 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) content-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) content-box"], |
| 79 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) padding-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) padding-box"], | 81 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) padding-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) padding-box"], |
| 80 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) border-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) border-box"], | 82 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) border-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) border-box"], |
| 81 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) margin-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) margin-box"], | 83 ["polygon(nonzero, 10px 10px, 20px 20px, 30px 30px) margin-box", "polygon(1
0px 10px, 20px 20px, 30px 30px) margin-box"], |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 256 |
| 255 function testNotInheritedShapeProperty(property, parentValue, childValue, expect
edValue) | 257 function testNotInheritedShapeProperty(property, parentValue, childValue, expect
edValue) |
| 256 { | 258 { |
| 257 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property +
'", "' + parentValue + '", "' + childValue + '")', expectedValue); | 259 shouldBeEqualToString('getParentAndChildComputedStylesString("' + property +
'", "' + parentValue + '", "' + childValue + '")', expectedValue); |
| 258 } | 260 } |
| 259 | 261 |
| 260 function applyToEachArglist(testFunction, arglists) | 262 function applyToEachArglist(testFunction, arglists) |
| 261 { | 263 { |
| 262 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist);
}); | 264 arglists.forEach(function(arglist, i, a) {testFunction.apply(null, arglist);
}); |
| 263 } | 265 } |
| OLD | NEW |