ladybird/Userland/Libraries/LibWeb/Geometry/DOMRect.idl
Luke Wilde 6f8afd8cd9 LibWeb: Implement DOMRect(ReadOnly)#fromRect
This will also be used by IntersectionObserver.
2023-07-07 05:27:25 +02:00

17 lines
495 B
Plaintext

#import <Geometry/DOMRectReadOnly.idl>
// https://drafts.fxtf.org/geometry/#dompoint
[Exposed=(Window,Worker), Serializable, LegacyWindowAlias=SVGRect]
interface DOMRect : DOMRectReadOnly {
constructor(optional double x = 0, optional double y = 0, optional double width = 0, optional double height = 0);
[NewObject] static DOMRect fromRect(optional DOMRectInit other = {});
attribute double x;
attribute double y;
attribute double width;
attribute double height;
};