mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c
This commit is contained in:
parent
c88dc51d03
commit
0e1caebaf4
791 changed files with 23381 additions and 5501 deletions
|
@ -28,7 +28,7 @@ registerPaint('geometry', class {
|
|||
return [
|
||||
'--bar',
|
||||
'--foo',
|
||||
'border-radius',
|
||||
'border-top-left-radius',
|
||||
];
|
||||
}
|
||||
paint(ctx, geom, styleMap) {
|
||||
|
@ -44,11 +44,11 @@ registerPaint('geometry', class {
|
|||
serializedStrings.push(serialized);
|
||||
}
|
||||
ctx.strokeStyle = 'green';
|
||||
if (serializedStrings[0] != "--bar: [null]")
|
||||
if (serializedStrings[0] != "--bar: [CSSUnparsedValue=]")
|
||||
ctx.strokeStyle = 'red';
|
||||
if (serializedStrings[1] != "--foo: [CSSUnparsedValue= bar]")
|
||||
ctx.strokeStyle = 'blue';
|
||||
if (serializedStrings[2] != "border-radius: [CSSStyleValue=2px]")
|
||||
if (serializedStrings[2] != "border-top-left-radius: [CSSUnitValue=2px]")
|
||||
ctx.strokeStyle = 'yellow';
|
||||
ctx.lineWidth = 4;
|
||||
ctx.strokeRect(0, 0, geom.width, geom.height);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue