Repository navigation
Add interactivity longhand and enable -moz-inert - #497
Conversation
3d2e465 to
8fd3c34
Compare
| servo_restyle_damage = "repaint" | ||
| affects = "paint" | ||
|
|
||
| [-servo-inert] |
There was a problem hiding this comment.
I think it's simpler to just reuse -moz-inert. The name doesn't really matter since it's internal.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Well, I guess if you think this will not cause errors, then it is probably fine. Changed it to -moz-inert.
…vo-inert` pseudoclass Signed-off-by: Glenn Skrzypczak <[email protected]>
Signed-off-by: Glenn Skrzypczak <[email protected]>
8fd3c34 to
1ae8770
Compare
interactivity and -servo-inert longhands and -servo-inert pseudoclassinteractivity longhand and enable -moz-inert
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]>
Servo: servo/servo#48967 --------- Signed-off-by: Glenn Skrzypczak <[email protected]>
…r Servo. r=firefox-style-system-reviewers,emilio Imports servo/stylo#497 Differential Revision: https://phabricator.services.mozilla.com/D341397
…r Servo. r=firefox-style-system-reviewers,emilio Imports servo/stylo#497 Differential Revision: https://phabricator.services.mozilla.com/D341397 UltraBlame original commit: 2c46415a269220fa3ea9a7446c8f331f3ad6fdb3
…r Servo. r=firefox-style-system-reviewers,emilio Imports servo/stylo#497 Differential Revision: https://phabricator.services.mozilla.com/D341397 UltraBlame original commit: 2c46415a269220fa3ea9a7446c8f331f3ad6fdb3
…r Servo. r=firefox-style-system-reviewers,emilio Imports servo/stylo#497 Differential Revision: https://phabricator.services.mozilla.com/D341397 UltraBlame original commit: 2c46415a269220fa3ea9a7446c8f331f3ad6fdb3
…r Servo. r=firefox-style-system-reviewers,emilio Imports #497 Differential Revision: https://phabricator.services.mozilla.com/D341397
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]>
Servo: servo/servo#48967