Skip to content

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.

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
attribute
readonly attribute unrestricted double x;
attribute
readonly attribute unrestricted double y;
attribute
readonly attribute unrestricted double width;
attribute
readonly attribute unrestricted double height;
attribute
readonly attribute unrestricted double top;
attribute
readonly attribute unrestricted double right;
attribute
readonly attribute unrestricted double bottom;
attribute
readonly attribute unrestricted double left;

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)