standards-positions icon indicating copy to clipboard operation
standards-positions copied to clipboard

Add `getSelectionBoundingClientRect()` for `<textarea>` and `<input>` elements

Open t-andresre opened this issue 4 months ago • 1 comments

WebKittens

@annevk

Title of the proposal

getSelectionBoundingClientRect()

URL to the spec

https://github.com/whatwg/html/issues/10614 (no spec PR yet)

URL to the spec's repository

https://github.com/whatwg/html

Issue Tracker URL

No response

Explainer URL

https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/GetSelectionBoundingClientRect/explainer.md

TAG Design Review URL

TBD

Mozilla standards-positions issue URL

https://github.com/mozilla/standards-positions/issues/1249

WebKit Bugzilla URL

No response

Radar URL

No response

Description

getSelectionBoundingClientRect() aims to provide a more direct way of getting the selection bounds inside the <textarea> and <input> elements.

t-andresre avatar Jun 13 '25 17:06 t-andresre