1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 12:55:07 +00:00
serenity/Userland/Libraries/LibWeb/Geometry/DOMRect.idl
Andreas Kling 43d378940f 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/
2021-09-27 01:01:29 +02:00

15 lines
432 B
Text

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;
};