Skip to content

Conversation

@stephanieyzhang
Copy link

@stephanieyzhang stephanieyzhang commented Oct 6, 2025

PlainTextRange is a specialized, live AbstractRange subclass representing selection and caret positions within the value space of <input>/<textarea> and other elements whose specifications define that they support plain text ranges. It enables range-based geometry operations for those elements while preserving encapsulation by disallowing direct Range mutations.

This change adds getClientRects() and getBoundingClientRect() methods to the PlainTextRange interface, aligning its behavior with Range for layout and rendering queries. It complements the DOM and HTML integrations of PlainTextRange, ensuring consistent geometry retrieval across editing and selection APIs.

Current built changes: Overview.html

@stephanieyzhang stephanieyzhang changed the title Add FormControlRange getClientRects/getBoundingClientRects [cssom-view-1] Add FormControlRange getClientRects/getBoundingClientRects Oct 6, 2025
@stephanieyzhang stephanieyzhang changed the title [cssom-view-1] Add FormControlRange getClientRects/getBoundingClientRects [DO NOT REVIEW][cssom-view-1] Add FormControlRange getClientRects/getBoundingClientRects Oct 6, 2025
@stephanieyzhang stephanieyzhang changed the title [DO NOT REVIEW][cssom-view-1] Add FormControlRange getClientRects/getBoundingClientRects [cssom-view-1] Add FormControlRange getClientRects/getBoundingClientRects Oct 9, 2025
@stephanieyzhang stephanieyzhang changed the title [cssom-view-1] Add FormControlRange getClientRects/getBoundingClientRects [cssom-view-1] Add FormControlRange geometry APIs (getClientRects/getBoundingClientRects) Oct 9, 2025
rename to PlainTextRange + tpac changes
@stephanieyzhang stephanieyzhang changed the title [cssom-view-1] Add FormControlRange geometry APIs (getClientRects/getBoundingClientRects) [cssom-view-1] Add PlainTextRange geometry APIs (getClientRects/getBoundingClientRects) Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant