Skip to content

script: Collapse Document selection when focusing text inputs - #48107

Merged
mrobinson merged 1 commit into
servo:mainfrom
mrobinson:selection-unique
Sep 15, 2026
Merged

mrobinson merged 1 commit into
servo:mainfrom
mrobinson:selection-unique

Conversation

@mrobinson

Copy link
Copy Markdown
Member

Instead of allowing a Document selection to co-exist with a text input
selection, ensure that the Document selection is collapsed when the
input gets focus. This does allow a text input selection to continue
to exists when it loses focus which matches the behavior of other
browsers.

Testing: This change gets a large number of editing subtests passing.

Instead of allowing a `Document` selection to co-exist with a text input
selection, ensure that the `Document` selection is collapsed when the
input gets focus. This *does* allow a text input selection to continue
to exists when it loses focus which matches the behavior of other
browsers.

Signed-off-by: Martin Robinson <[email protected]>
@mrobinson
mrobinson requested a review from gterzian as a code owner September 15, 2026 16:33
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 15, 2026
@mrobinson mrobinson mentioned this pull request Sep 15, 2026
25 of 40 tasks
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Sep 15, 2026
@mrobinson
mrobinson enabled auto-merge September 15, 2026 16:43
@mrobinson
mrobinson added this pull request to the merge queue Sep 15, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 15, 2026
Merged via the queue into servo:main with commit eb14a6f Sep 15, 2026
36 checks passed
@mrobinson
mrobinson deleted the selection-unique branch September 15, 2026 19:02
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Sep 15, 2026
RichardTjokroutomo pushed a commit to RichardTjokroutomo/servo that referenced this pull request Oct 6, 2026
…o#48107)

Instead of allowing a `Document` selection to co-exist with a text input
selection, ensure that the `Document` selection is collapsed when the
input gets focus. This *does* allow a text input selection to continue
to exists when it loses focus which matches the behavior of other
browsers.

Testing: This change gets a large number of editing subtests passing.

Signed-off-by: Martin Robinson <[email protected]>
hhhwsqhhh pushed a commit to hhhwsqhhh/servo that referenced this pull request Oct 12, 2026
…o#48107)

Instead of allowing a `Document` selection to co-exist with a text input
selection, ensure that the `Document` selection is collapsed when the
input gets focus. This *does* allow a text input selection to continue
to exists when it loses focus which matches the behavior of other
browsers.

Testing: This change gets a large number of editing subtests passing.

Signed-off-by: Martin Robinson <[email protected]>
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.

3 participants