Update web-platform-tests to revision 9817f7f027fe1e92cc2fce31d6002c4d669918e8

This commit is contained in:
WPT Sync Bot 2018-03-08 20:11:36 -05:00 committed by Josh Matthews
parent 8e52f8a523
commit f3533538ea
2144 changed files with 21364 additions and 11001 deletions

View file

@ -3,7 +3,7 @@
<link rel="match" href="style-before-pseudo-ref.html">
<style>
div {
border-radius: 3px;
margin-left: 3px;
}
div::before {
@ -13,7 +13,7 @@ div::before {
color: rgba(0, 0, 0, 0);
background-image: paint(geometry);
border-radius: 2px;
margin-left: 2px;
--foo: bar;
}
</style>
@ -28,7 +28,7 @@ registerPaint('geometry', class {
return [
'--bar',
'--foo',
'border-top-left-radius',
'margin-left',
];
}
paint(ctx, geom, styleMap) {
@ -48,7 +48,7 @@ registerPaint('geometry', class {
ctx.strokeStyle = 'red';
if (serializedStrings[1] != "--foo: [CSSUnparsedValue= bar]")
ctx.strokeStyle = 'blue';
if (serializedStrings[2] != "border-top-left-radius: [CSSUnitValue=2px]")
if (serializedStrings[2] != "margin-left: [CSSUnitValue=2px]")
ctx.strokeStyle = 'yellow';
ctx.lineWidth = 4;
ctx.strokeRect(0, 0, geom.width, geom.height);