Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. DOMRectList

DOMRectList

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

TheDOMRectList interface represents a collection ofDOMRect objects, typically used to hold the rectangles associated with a particular element, like bounding boxes returned by methods such asgetClientRects(). It provides access to each rectangle in the list via its index, along with alength property that indicates the total number of rectangles in the list.

Note:DOMRectList exists for compatibility with legacy Web content and is not recommended to be used when creating new APIs.

Instance properties

DOMRectList.lengthRead only

A read-only property that returns the total number ofDOMRect objects in theDOMRectList.

Instance methods

DOMRectList.item

Returns theDOMRect object at the specified index. If theindex is out of range, it returnsnull.

Specifications

Specification
Geometry Interfaces Module Level 1
# DOMRectList

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp