DOMRect
Generated from idl/html.webidl when the site was built at 7aa23e2.
DOMRect is an interface in idl/html.webidl, exposed in Window, Worker. What it does is on MDN; this page says what niso has of it.
NisoValue: DOMRect has no identity, so it crosses the C API as a struct. The glue’s DOMRect (the Geometry Interfaces) makes the objects for script.
Status
Section titled “Status”The web features its members belong to, each with its Baseline status on the web and how much of the feature’s WPT suite passes in niso (see Web platform support).
| Feature | On the web | In niso | Members |
|---|---|---|---|
| DOM Geometry | Widely available | Partial 96% 1515 of 1575 subtests pass | 5 |
Members
Section titled “Members”readonly attribute unrestricted double x;readonly attribute unrestricted double y;readonly attribute unrestricted double width;height
Section titled “height”readonly attribute unrestricted double height;readonly attribute unrestricted double top;readonly attribute unrestricted double right;bottom
Section titled “bottom”readonly attribute unrestricted double bottom;readonly attribute unrestricted double left;Not in niso yet
Section titled “Not in niso yet”Members the web has, by the BCD keys web-features 3.45.0 lists, that idl/ doesn’t declare. The list is partial: web-features lists only the keys it maps to a feature.
DOMRect(DOM Geometry)fromRect_static(DOM Geometry)worker_support(DOM Geometry)