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

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<canvas id ="canvas" width="100" height="100" style="border-radius: 2px"></canvas>
<canvas id ="canvas" width="100" height="100" style="margin-left: 2px"></canvas>
<script>
var canvas = document.getElementById('canvas');
var context = canvas.getContext("2d");

View file

@ -5,7 +5,7 @@
.container {
width: 100px;
height: 100px;
border-radius: 2px;
margin-left: 2px;
--foo: bar;
}
@ -24,8 +24,8 @@ registerPaint('geometry', class {
return [
'--bar',
'--foo',
'align-items',
'border-top-left-radius',
'empty-cells',
'margin-left',
];
}
paint(ctx, geom, styleMap) {
@ -45,9 +45,9 @@ registerPaint('geometry', class {
ctx.strokeStyle = 'red';
if (serializedStrings[1] != "--foo: [CSSUnparsedValue= bar]")
ctx.strokeStyle = 'blue';
if (serializedStrings[2] != "align-items: [CSSKeywordValue=normal]")
if (serializedStrings[2] != "empty-cells: [CSSKeywordValue=show]")
ctx.strokeStyle = 'yellow';
if (serializedStrings[3] != "border-top-left-radius: [CSSUnitValue=2px]")
if (serializedStrings[3] != "margin-left: [CSSUnitValue=2px]")
ctx.strokeStyle = 'cyan';
ctx.lineWidth = 4;
ctx.strokeRect(0, 0, geom.width, geom.height);

View file

@ -2,17 +2,17 @@
<html>
<style>
div {
border-radius: 3px;
margin-left: 3px;
}
div::before {
width: 100px;
height: 100px;
border-radius: 2px;
margin-left: 2px;
content: 'foo';
color: rgba(0, 0, 0, 0);
}
canvas{
border-radius: 2px;
margin-left: 2px;
display: block;
position: relative;
top: -1em;

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);