mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision 9817f7f027fe1e92cc2fce31d6002c4d669918e8
This commit is contained in:
parent
8e52f8a523
commit
f3533538ea
2144 changed files with 21364 additions and 11001 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue