mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
LibWeb: Add DOMRect and Element.getBoundingClientRect()
This marks our entry into the Web::Geometry namespace, based on the "Geometry" spec at https://drafts.fxtf.org/geometry/
This commit is contained in:
parent
0c63f0bf73
commit
43d378940f
8 changed files with 112 additions and 1 deletions
15
Userland/Libraries/LibWeb/Geometry/DOMRect.idl
Normal file
15
Userland/Libraries/LibWeb/Geometry/DOMRect.idl
Normal file
|
@ -0,0 +1,15 @@
|
|||
interface DOMRect {
|
||||
|
||||
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;
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue