Skip to content

Add interactivity longhand and enable -moz-inert - #497

Merged
mrobinson merged 2 commits into
servo:mainfrom
skyz1:implement-interactivity
Oct 26, 2026
Merged

mrobinson merged 2 commits into
servo:mainfrom
skyz1:implement-interactivity

Conversation

@skyz1

@skyz1 skyz1 commented Oct 22, 2026

Copy link
Copy Markdown
Member

Comment thread style/properties/longhands.toml Outdated
servo_restyle_damage = "repaint"
affects = "paint"

[-servo-inert]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's simpler to just reuse -moz-inert. The name doesn't really matter since it's internal.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While it is highly unlikely, changes to -moz-inert could break servo if we reuse it. So I think having our own independent version of it ensures that there are no breaking changes, despite adding a bit of redundancy.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What kind of changes are you thinking about? If it needs to be changed, chances are we should change -servo-inert too? They use the same type anyway, which is probably where the change would happen. So I'm not seeing much benefit in separating them

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I guess if you think this will not cause errors, then it is probably fine. Changed it to -moz-inert.

Comment thread style/properties/longhands.toml Resolved
@skyz1
skyz1 marked this pull request as ready for review October 25, 2026 21:53
@skyz1
skyz1 requested a review from Loirooriol October 25, 2026 21:53
@skyz1
skyz1 force-pushed the implement-interactivity branch from 8fd3c34 to 1ae8770 Compare October 26, 2026 09:13
@skyz1 skyz1 changed the title Add interactivity and -servo-inert longhands and -servo-inert pseudoclass Add interactivity longhand and enable -moz-inert Oct 26, 2026
@mrobinson
mrobinson added this pull request to the merge queue Oct 26, 2026
Merged via the queue into servo:main with commit da29a2a Oct 26, 2026
6 checks passed
longvatrong111 pushed a commit to longvatrong111/servo that referenced this pull request Oct 27, 2026
This implements inert elements. The PR supports both the `inert`
attribute and the new `interactivity` property.

We follow geckos approach for implementing inertness using an internal
`-servo-inert` property. This requires some changes to stylo:
servo/stylo#497

Currently, there is the limitation that the page does not become inert
when a dialog opens, as this depends on servo#43665.

Testing: Passes additional web platform tests.
Fixes: servo#19746

---------

Signed-off-by: Glenn Skrzypczak <[email protected]>
Signed-off-by: Glenn Skrzypczak <[email protected]>
Co-authored-by: Tim van der Lippe <[email protected]>
@skyz1
skyz1 deleted the implement-interactivity branch November 1, 2026 18:14
Loirooriol pushed a commit that referenced this pull request Nov 9, 2026
lando-worker Bot pushed a commit to mozilla-firefox/firefox that referenced this pull request Nov 11, 2026
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Nov 11, 2026
…r Servo. r=firefox-style-system-reviewers,emilio

Imports servo/stylo#497

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

UltraBlame original commit: 2c46415a269220fa3ea9a7446c8f331f3ad6fdb3
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Nov 11, 2026
…r Servo. r=firefox-style-system-reviewers,emilio

Imports servo/stylo#497

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

UltraBlame original commit: 2c46415a269220fa3ea9a7446c8f331f3ad6fdb3
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Nov 11, 2026
…r Servo. r=firefox-style-system-reviewers,emilio

Imports servo/stylo#497

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

UltraBlame original commit: 2c46415a269220fa3ea9a7446c8f331f3ad6fdb3
aphrody-dev pushed a commit to aphrody-labs/browser that referenced this pull request Nov 16, 2026
This implements inert elements. The PR supports both the `inert`
attribute and the new `interactivity` property.

We follow geckos approach for implementing inertness using an internal
`-servo-inert` property. This requires some changes to stylo:
servo/stylo#497

Currently, there is the limitation that the page does not become inert
when a dialog opens, as this depends on #43665.

Testing: Passes additional web platform tests.
Fixes: #19746

---------

Signed-off-by: Glenn Skrzypczak <[email protected]>
Signed-off-by: Glenn Skrzypczak <[email protected]>
Co-authored-by: Tim van der Lippe <[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