Intent to prototype: Opaque Ranges

65 views
Skip to first unread message

Jan-Niklas Jäschke

unread,
May 4, 2026, 5:55:08 AM (2 days ago) May 4
to dev-pl...@mozilla.org
Summary:

Opaque Ranges represent a live span of text within a form control's
value, such as <textarea> or text-based <input>, so developers can work
with value text using range-like APIs. It enables operations such as
getBoundingClientRect(), getClientRects and integration with the CSS
Highlight API to allow styling of text.


Bug:

https://bugzil.la/1990256


Specifications:

https://github.com/whatwg/dom/pull/1404
https://github.com/whatwg/html/pull/11741
https://github.com/w3c/csswg-drafts/pull/12904


Standards body: WHATWG

Platform coverage: All

Pref: dom.opaque_range.enabled

DevTools bug: N/A

Extensions bug: N/A

Standards-Position:
https://github.com/mozilla/standards-positions/issues/1289

Other browsers:

- Blink: Estimated to ship in 149 (i2s:
https://groups.google.com/a/chromium.org/g/blink-dev/c/otEJ9AacRg4/m/XilKgTTIBwAJ)
- WebKit: positive standards-position

Web-platform tests:

https://wpt.fyi/results/dom/ranges/tentative?label=experimental&label=master&aligned
I'm planning to improve test coverage for this feature (eg. Reftests)

Reply all
Reply to author
Forward
0 new messages