- From: Stephanie Zhang <notifications@github.com>
- Date: Tue, 10 Feb 2026 09:32:52 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1404/review/3780206842@github.com>
@stephanieyzhang commented on this pull request.
> + <dd>Returns a {{DOMRectList}} of client rectangles that enclose the selected portion of the range.
+ If the user agent cannot compute geometry for the range (e.g. because the element it was created
+ from is not <a>connected</a> or has computed <code>display</code> of <code>none</code>), or if the
+ range is {{AbstractRange/collapsed}} with no visible caret, returns an empty list.
+
+ <dt><code><var ignore>rect</var> = <var ignore>range</var> . {{OpaqueRange/getBoundingClientRect()}}</code>
+ <dd>Returns a {{DOMRect}} that is the union of the rectangles from
+ {{OpaqueRange/getClientRects()}}. For a {{AbstractRange/collapsed}} range with a visible caret,
+ returns a rectangle of zero width whose height equals the line height at the caret position. If
+ the user agent cannot compute geometry for the range (e.g. because the element it was created
+ from is not <a>connected</a> or has computed <code>display</code> of <code>none</code>), returns
+ a rectangle with zero width and height.
+</dl>
+
+<p>The {{OpaqueRange/getClientRects()}} and {{OpaqueRange/getBoundingClientRect()}} methods are
+defined in [[CSSOM-VIEW]].
remove?
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1404#pullrequestreview-3780206842
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1404/review/3780206842@github.com>
Received on Tuesday, 10 February 2026 17:35:36 UTC