Skip to content

Truly independent web browser

616 B
Raw Blame
// https://drafts.fxtf.org/geometry/#domrect
[Exposed=(Window,Worker), Serializable, LegacyWindowAlias=SVGRect, ImplementedIn=Rust]
interface DOMRect : DOMRectReadOnly {
    constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
        optional unrestricted double width = 0, optional unrestricted double height = 0);

    [NewObject] static DOMRect fromRect(optional DOMRectInit other = {});

    inherit attribute unrestricted double x;
    inherit attribute unrestricted double y;
    inherit attribute unrestricted double width;
    inherit attribute unrestricted double height;
};