1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 18:17:44 +00:00

LibWeb: Add DOMRectReadOnly and make DOMRect inherit from it

This matches the class hierarchy of the CSS Geometry Interfaces Module.
This commit is contained in:
Andreas Kling 2021-10-08 22:59:15 +02:00
parent 77f72c7cfe
commit 3c0b55c284
7 changed files with 87 additions and 24 deletions

View file

@ -0,0 +1,15 @@
interface DOMRectReadOnly {
constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);
readonly attribute double x;
readonly attribute double y;
readonly attribute double width;
readonly attribute double height;
readonly attribute double top;
readonly attribute double right;
readonly attribute double bottom;
readonly attribute double left;
};