Repository navigation
script: basic inertness implementation - #48967
Conversation
00b7256 to
30e9817
Compare
This enables the inert tests in preperation for servo#48967. Testing: This enables tests Signed-off-by: Glenn Skrzypczak <[email protected]>
Loirooriol
left a comment
There was a problem hiding this comment.
This seems like the wrong approach, because ultimately, inertness is CSS-based: https://drafts.csswg.org/css-ui-4/#inertness
Thanks for pointing that out; that makes sense. I just wasn't familiar with that specification. So, if I understand correctly, the |
30e9817 to
72d72e7
Compare
|
The UA can still decide that some elements are inert. But authors can use CSS to also make more elements inert. So you need to check the computed style anyways. And since inertness gets propagated to flat tree descendants, it's just more convenient to just track it as an internal inherited CSS property, then you don't need to loop ancestors. |
Yeah, that makes sense. Do we have something similar going on for other stuff already? Would I need to tap into stylo for that? |
Signed-off-by: Glenn Skrzypczak <[email protected]> ± Conflicts: ± tests/wpt/meta/inert/inert-iframe-tabbing.html.ini ± tests/wpt/meta/inert/inert-inlines-around-selection-range-in-contenteditable.html.ini ± tests/wpt/meta/inert/inert-node-is-uneditable.html.ini ± tests/wpt/meta/inert/inert-on-non-html.html.ini
a95a59b to
1d74d21
Compare
Signed-off-by: Glenn Skrzypczak <[email protected]>
1d74d21 to
5131ddf
Compare
|
🔨 Triggering try run (#40169656021) for Linux (WPT) |
Co-authored-by: Tim van der Lippe <[email protected]> Signed-off-by: Glenn Skrzypczak <[email protected]>
Signed-off-by: Glenn Skrzypczak <[email protected]>
Signed-off-by: Glenn Skrzypczak <[email protected]>
Signed-off-by: Glenn Skrzypczak <[email protected]>
Signed-off-by: Glenn Skrzypczak <[email protected]>
Signed-off-by: Glenn Skrzypczak <[email protected]>
I ran the test on main aswell and there it also does not error locally. However, it seems to error on CI. No idea why... It seems it has something to do with webdriver and I am not familiar with that, so I asked claude to investigate. Claude suggested we are wrongfully reporting the picker as a WebDriver user prompt. However, no idea if this makes sense, I have not clue about webdriver. |
Signed-off-by: Glenn Skrzypczak <[email protected]>
|
This PR now reuses |
|
The Stylo PR would first need to be merged and then we can merge this one. |
It should merge momentarily now. |
Signed-off-by: Glenn Skrzypczak <[email protected]>
|
🔨 Triggering try run (#40471661643) for Linux (WPT) |
|
Test results for linux-wpt from try job (#40471661643): Flaky unexpected result (21)
Stable unexpected results that are known to be intermittent (9)
|
|
✨ Try run (#40471661643) succeeded. |
Servo: servo/servo#48967 --------- Signed-off-by: Glenn Skrzypczak <[email protected]>
| /// Inertness is propagated using the internal `-moz-inert` property. | ||
| pub(crate) fn is_inert(&self) -> bool { | ||
| self.downcast::<Element>() | ||
| .and_then(Element::style) |
There was a problem hiding this comment.
I'm concerned that this can be called before style has been resolved.
There was a problem hiding this comment.
Servo: servo/servo#48967 --------- Signed-off-by: Glenn Skrzypczak <[email protected]>
|
Someone thinks this change could be added to the monthly blog post! To help with this, we need someone to answer the following questions: 😄
If this change is part of a broader feature/project please make sure the PR description contains a Please add Thanks for helping us prepare the monthly blog post! ❤️ |
This implements inert elements. The PR supports both the
inertattribute and the newinteractivityproperty.We follow geckos approach for implementing inertness using an internal
-servo-inertproperty. This requires some changes to stylo: servo/stylo#497Currently, 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