Repository navigation
script: Add initial support for updating Document selection with the mouse - #47358
Merged
Merged
Conversation
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
mrobinson
force-pushed
the
mouse-dom-selection
branch
from
August 19, 2026 12:51
5f54c8a to
283cb64
Compare
|
🔨 Triggering try run (#32254886095) for Linux (WPT) |
|
Test results for linux-wpt from try job (#32254886095): Flaky unexpected result (34)
Stable unexpected results that are known to be intermittent (19)
Stable unexpected results (1)
|
|
|
|
🔨 Triggering try run (#32379229716) for Linux (WPT) |
|
Test results for linux-wpt from try job (#32379229716): Flaky unexpected result (41)
Stable unexpected results that are known to be intermittent (17)
|
|
✨ Try run (#32379229716) succeeded. |
SimonSapin
approved these changes
Aug 25, 2026
SimonSapin
left a comment
Member
There was a problem hiding this comment.
Looks good, just the usual nits on naming and doc-comments
…mouse This change adds initial support for selecting text on the page with the mouse. While this works there are quite a few caveats tracked by servo#36460. Major missing bits: - Selections do not currently work across shadow roots and selection won't update when moving through a different shadow root's contents. - Performance is bad, because every selection update requires a relayout. A followup change will add support for display-list only updates when the selection boundaries stay within the same node. - We do not support `user-select` yet which is why some tests fail. - Selection never updates when the cursor moves outside of the viewport rect and scrolling by dragging past the end of the selection isn't supported. - The selection rectangle is often wrong within a single line. - Double and triple clicking to select word and paragraph is not supported. - The context menu does not respond to selection presence yet. - Currently only text can be selected, but eventually `HitTest` will be extended to support selecting images as well. Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Simon Sapin <[email protected]>
Signed-off-by: Martin Robinson <[email protected]>
mrobinson
force-pushed
the
mouse-dom-selection
branch
from
August 25, 2026 06:52
283cb64 to
630ef7d
Compare
Member
Author
|
Thanks for the review @SimonSapin! |
mrobinson
enabled auto-merge
August 25, 2026 06:52
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 25, 2026
RichardTjokroutomo
pushed a commit
to RichardTjokroutomo/servo
that referenced
this pull request
Oct 6, 2026
…mouse (servo#47358) This change adds initial support for selecting text on the page with the mouse. While this works there are quite a few caveats tracked by servo#36460. Major missing bits: - Selections do not currently work across shadow roots and selection won't update when moving through a different shadow root's contents. - Performance is bad, because every selection update requires a relayout. A followup change will add support for display-list only updates when the selection boundaries stay within the same node. - We do not support `user-select` yet which is why some tests fail. - Selection never updates when the cursor moves outside of the viewport rect and scrolling by dragging past the end of the selection isn't supported. - The selection rectangle is often wrong within a single line. - Double and triple clicking to select word and paragraph is not supported. - The context menu does not respond to selection presence yet. - Currently only text can be selected, but eventually `HitTest` will be extended to support selecting images as well. Testing: This change includes unit tests and updates WPT results. Fixes: servo#4409. --------- Signed-off-by: Martin Robinson <[email protected]> Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Simon Sapin <[email protected]>
Psychpsyo
pushed a commit
to Psychpsyo/servo
that referenced
this pull request
Oct 12, 2026
…mouse (servo#47358) This change adds initial support for selecting text on the page with the mouse. While this works there are quite a few caveats tracked by servo#36460. Major missing bits: - Selections do not currently work across shadow roots and selection won't update when moving through a different shadow root's contents. - Performance is bad, because every selection update requires a relayout. A followup change will add support for display-list only updates when the selection boundaries stay within the same node. - We do not support `user-select` yet which is why some tests fail. - Selection never updates when the cursor moves outside of the viewport rect and scrolling by dragging past the end of the selection isn't supported. - The selection rectangle is often wrong within a single line. - Double and triple clicking to select word and paragraph is not supported. - The context menu does not respond to selection presence yet. - Currently only text can be selected, but eventually `HitTest` will be extended to support selecting images as well. Testing: This change includes unit tests and updates WPT results. Fixes: servo#4409. --------- Signed-off-by: Martin Robinson <[email protected]> Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Simon Sapin <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds initial support for selecting text on the page with the
mouse. While this works there are quite a few caveats tracked by #36460.
Major missing bits:
won't update when moving through a different shadow root's contents.
A followup change will add support for display-list only updates when
the selection boundaries stay within the same node.
user-selectyet which is why some tests fail.rect and scrolling by dragging past the end of the selection isn't
supported.
supported.
HitTestwill beextended to support selecting images as well.
Testing: This change includes unit tests and updates WPT results.
Fixes: #4409.