Skip to content

Enable user-select for Servo + contain value - #462

Merged
mrobinson merged 2 commits into
servo:mainfrom
SimonSapin:user-select
Sep 17, 2026
Merged

mrobinson merged 2 commits into
servo:mainfrom
SimonSapin:user-select

Conversation

@SimonSapin

@SimonSapin SimonSapin commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Servo PR: servo/servo#48137

@mrobinson
mrobinson added this pull request to the merge queue Sep 17, 2026
Merged via the queue into servo:main with commit fe414d7 Sep 17, 2026
5 checks passed
@SimonSapin
SimonSapin deleted the user-select branch September 17, 2026 11:02
@jdm

jdm commented Sep 18, 2026

Copy link
Copy Markdown
Member

This shouldn't have been merged before the Servo PR had an approving merge.

@mrobinson

Copy link
Copy Markdown
Member

Apologies, the Servo PR is almost ready to land and I'll do that later this morning.

@SimonSapin

Copy link
Copy Markdown
Member Author

My bad, I waited for the stylo PR to be merged in order to have its definitive git commit hash before taking the servo PR out of draft and asking for its review, but I see how it should be the other way around to avoid drift. I’ll keep it in mind for future PRs. (Should we have CONTRIBUTING.md or something to explain this?)

(Although in this case, if it comes to that Servo can be updated to a newer Stylo with this change and will compile. At worst it’ll temporarily parse a property without implementing it.)

rayguo17 pushed a commit to rayguo17/servo that referenced this pull request Sep 18, 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]>
Loirooriol pushed a commit that referenced this pull request Sep 30, 2026
lando-worker Bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Oct 1, 2026
lando-worker Bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Oct 1, 2026
github-actions Bot pushed a commit to d-desiatkin/stylo that referenced this pull request Oct 1, 2026
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 5, 2026
…efox-style-system-reviewers,emilio

Imports servo/stylo#462

Differential Revision: https://phabricator.services.mozilla.com/D329987

UltraBlame original commit: 85f754865d8fd394a3c4c3198c5bd019f22c3e46
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 5, 2026
…efox-style-system-reviewers,emilio

Imports servo/stylo#462

Differential Revision: https://phabricator.services.mozilla.com/D329987

UltraBlame original commit: 2a94f447480ea0c76936ca4a8d6a0fc831001cad
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 5, 2026
…efox-style-system-reviewers,emilio

Imports servo/stylo#462

Differential Revision: https://phabricator.services.mozilla.com/D329987

UltraBlame original commit: 85f754865d8fd394a3c4c3198c5bd019f22c3e46
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 5, 2026
…efox-style-system-reviewers,emilio

Imports servo/stylo#462

Differential Revision: https://phabricator.services.mozilla.com/D329987

UltraBlame original commit: 2a94f447480ea0c76936ca4a8d6a0fc831001cad
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 5, 2026
…efox-style-system-reviewers,emilio

Imports servo/stylo#462

Differential Revision: https://phabricator.services.mozilla.com/D329987

UltraBlame original commit: 85f754865d8fd394a3c4c3198c5bd019f22c3e46
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 5, 2026
…efox-style-system-reviewers,emilio

Imports servo/stylo#462

Differential Revision: https://phabricator.services.mozilla.com/D329987

UltraBlame original commit: 2a94f447480ea0c76936ca4a8d6a0fc831001cad
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]>
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