1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

LibWeb: Allow setting the width & height properties on <canvas> elements

This commit is contained in:
Andreas Kling 2021-11-13 00:54:21 +01:00
parent 47edd6ae89
commit 778268b1a5
3 changed files with 15 additions and 2 deletions

View file

@ -1,8 +1,8 @@
interface HTMLCanvasElement : HTMLElement {
CanvasRenderingContext2D? getContext(DOMString contextId);
readonly attribute unsigned long width;
readonly attribute unsigned long height;
attribute unsigned long width;
attribute unsigned long height;
USVString toDataURL(optional DOMString type = "image/png", optional double quality);