Re: [whatwg/dom] Add OpaqueRange interface (PR #1404)

@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