- From: Stephanie Zhang <notifications@github.com>
- Date: Wed, 11 Feb 2026 23:56:19 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 12 February 2026 07:56:23 UTC
@stephanieyzhang commented on this pull request.
> @@ -9981,6 +9988,61 @@ and {{Range/getBoundingClientRect()}} methods are defined in other specification
[[CSSOM-VIEW]]
+<h3 id=interface-opaquerange>Interface {{OpaqueRange}}</h3>
+
+<pre class=idl>
+[Exposed=Window]
+interface OpaqueRange : AbstractRange {
+ DOMRectList getClientRects();
+ DOMRect getBoundingClientRect();
+};
The offsets are readonly since they're inherited from AbstractRange. Currently the [HTML PR](https://github.com/whatwg/html/pull/11741) defines `getValueRange(start, end)` on the element for creation. We haven't yet added an API for updating, so that's an open question. Some options could be an element-side API (e.g. `updateValueRange(range, start, end))` to keep OpaqueRange generic, or setters directly on OpaqueRange.
Would appreciate your thoughts @annevk @smaug----
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1404#discussion_r2797267433
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1404/review/3789213000@github.com>
Received on Thursday, 12 February 2026 07:56:23 UTC