mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 401d9618fcda9dfbeac49b8055df98386f6118f1
This commit is contained in:
parent
c76d1318f3
commit
260441296f
139 changed files with 1277 additions and 724 deletions
|
@ -36,7 +36,7 @@ registerPaint('box', class {
|
|||
static get inputArguments() { return ['<color>', '<length>']; }
|
||||
paint(ctx, geom, properties, args) {
|
||||
ctx.fillStyle = args[0].toString();
|
||||
let size = args[1].toString();
|
||||
let size = parseInt(args[1].toString());
|
||||
ctx.fillRect(40, 40, size, size);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue