Repository navigation
Add initial support for the user-select property - #48137
Merged
Merged
Conversation
|
🔨 Triggering try run (#35135363395) for Linux (WPT) |
|
|
SimonSapin
force-pushed
the
user-select
branch
from
September 16, 2026 19:23
0ef698e to
c12797c
Compare
|
🔨 Triggering try run (#35140412413) for Linux (WPT) |
|
Test results for linux-wpt from try job (#35140412413): Flaky unexpected result (33)
Stable unexpected results that are known to be intermittent (11)
Stable unexpected results (3)
|
|
|
SimonSapin
force-pushed
the
user-select
branch
from
September 17, 2026 11:03
c12797c to
830cec1
Compare
Signed-off-by: Simon Sapin <[email protected]>
SimonSapin
force-pushed
the
user-select
branch
from
September 17, 2026 11:04
830cec1 to
c390086
Compare
SimonSapin
marked this pull request as ready for review
September 17, 2026 11:04
SimonSapin
requested review from
Loirooriol,
gterzian and
mrobinson
as code owners
September 17, 2026 11:04
This comment was marked as outdated.
This comment was marked as outdated.
Member
Oh sorry. I just realise you already say this in Stylo PR. |
PupilTong
pushed a commit
to PupilTong/stylo
that referenced
this pull request
Sep 18, 2026
Servo PR: servo/servo#48137 --------- Signed-off-by: Simon Sapin <[email protected]>
- Correct offset in call to compare_dom_positions - Minor typo fixes and doc adjustments - Move all `user-select` related code to `document_selection_drag.rs` (to avoid `node.rs` growing any more) Signed-off-by: Martin Robinson <[email protected]>
mrobinson
approved these changes
Sep 18, 2026
user-select propertyuser-select property
mrobinson
enabled auto-merge
September 18, 2026 10:04
Contributor
|
nooo 😆 |
Member
Author
|
Contributor
ah yes thanks, good spot, i didn't notice there were unused bits in the middle, panic averted then! |
Loirooriol
pushed a commit
to servo/stylo
that referenced
this pull request
Sep 30, 2026
Servo PR: servo/servo#48137 --------- Signed-off-by: Simon Sapin <[email protected]>
RichardTjokroutomo
pushed a commit
to RichardTjokroutomo/servo
that referenced
this pull request
Oct 6, 2026
This adds initial support for the `user-select` property ([specification]). This adds support for various aspects of the property, yet there is still missing functionality: 1. Checks for this property do not first ensure that style is up-to-date. This means that processing of this property during drags may be one style out-of-date. 2. A single click on a `user-select: all` does not select it like in other browsers. Yet, even with these caveats support is sometimes better and more consistent than other browsers. Stylo PR: servo/stylo#462 Testing: Various WPT tests start to pass Fixes: Part of servo#47896 (missing `Selection.Stringifier` changes) [specification]: https://drafts.csswg.org/css-ui-4/#content-selection --------- Signed-off-by: Simon Sapin <[email protected]> Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Martin Robinson <[email protected]>
hhhwsqhhh
pushed a commit
to hhhwsqhhh/servo
that referenced
this pull request
Oct 12, 2026
This adds initial support for the `user-select` property ([specification]). This adds support for various aspects of the property, yet there is still missing functionality: 1. Checks for this property do not first ensure that style is up-to-date. This means that processing of this property during drags may be one style out-of-date. 2. A single click on a `user-select: all` does not select it like in other browsers. Yet, even with these caveats support is sometimes better and more consistent than other browsers. Stylo PR: servo/stylo#462 Testing: Various WPT tests start to pass Fixes: Part of servo#47896 (missing `Selection.Stringifier` changes) [specification]: https://drafts.csswg.org/css-ui-4/#content-selection --------- Signed-off-by: Simon Sapin <[email protected]> Signed-off-by: Martin Robinson <[email protected]> Co-authored-by: Martin Robinson <[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 adds initial support for the
user-selectproperty (specification). This adds support for various aspects of the property, yet there is still missing functionality:user-select: alldoes not select it like in other browsers.Yet, even with these caveats support is sometimes better and more consistent than other browsers.
Stylo PR: servo/stylo#462
Testing: Various WPT tests start to pass
Fixes: Part of #47896 (missing
Selection.Stringifierchanges)