Update web-platform-tests to revision ac16628eb7eb601957382053011363d2bcf8ce44

This commit is contained in:
WPT Sync Bot 2020-02-17 08:20:12 +00:00
parent ea7e753cea
commit 7e7c8873e4
4408 changed files with 664787 additions and 857286 deletions

View file

@ -56,7 +56,7 @@ test_valid_value("shape-outside", "circle(7% at 8% 9%) border-box");
// <shape-box> <basic-shape>
test_valid_value("shape-outside", "padding-box inset(10em)", "inset(10em) padding-box");
test_valid_value("shape-outside", "border-box circle(7% at 8% 9%)", "circle(7% at 8% 9%) border-box");
test_valid_value("shape-outside", "margin-box ellipse(at 1em 2em)", "ellipse(at 1em 2em) margin-box");
test_valid_value("shape-outside", "margin-box ellipse(at 1em 2em)", ["ellipse(at 1em 2em) margin-box", "ellipse(at 1em 2em)"]);
test_valid_value("shape-outside", "content-box polygon(1% 2%)", "polygon(1% 2%) content-box");
// <image>

View file

@ -34,8 +34,8 @@
},
{
"actual": "polygon(nonzero, 1px 1px) margin-box",
"expected_inline": "polygon(1px 1px) margin-box",
"expected_computed": "polygon(1px 1px) margin-box"
"expected_inline": "polygon(1px 1px)",
"expected_computed": "polygon(1px 1px)"
},
{
"actual": " content-box polygon(nonzero, 1px 1px)",
@ -54,8 +54,8 @@
},
{
"actual": "margin-box polygon(nonzero, 1px 1px)",
"expected_inline": "polygon(1px 1px) margin-box",
"expected_computed": "polygon(1px 1px) margin-box"
"expected_inline": "polygon(1px 1px)",
"expected_computed": "polygon(1px 1px)"
}
];
generate_tests( ParsingUtils.testInlineStyle,

View file

@ -803,19 +803,16 @@ var validPolygons = [
]
// [test value, expected property value, expected computed style]
// See https://github.com/w3c/csswg-drafts/issues/4399#issuecomment-556160413
// for the latest resolution to this respect.
var calcTestValues = [
["calc(10in)", "calc(10in)", "960px"],
["calc(10in)", "calc(960px)", "960px"],
["calc(10in + 20px)", "calc(980px)", "980px"],
["calc(30%)", "calc(30%)", "30%"],
["calc(100%/4)", "calc(25%)", "25%"],
["calc(25%*3)", "calc(75%)", "75%"],
// These following two test cases represent an either/or situation in the spec
// computed value is always supposed to be, at most, a tuple of a length and a percentage.
// the computed value of a calc() expression can be represented as either a number or a tuple
// of a dimension and a percentage.
// http://www.w3.org/TR/css3-values/#calc-notation
["calc(25%*3 - 10in)", "calc(75% - 10in)", ["calc(75% - 960px)", "calc(-960px + 75%)"]],
["calc((12.5%*6 + 10in) / 4)", "calc((75% + 10in) / 4)", ["calc((75% + 960px) / 4)", "calc(18.75% + 240px)"]]
["calc(25%*3 - 10in)", "calc(75% - 960px)", "calc(75% - 960px)"],
["calc((12.5%*6 + 10in) / 4)", "calc(18.75% + 240px)", "calc(18.75% + 240px)"]
]
return {