forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inert] Force 'pointer-events: none' on inert nodes at used-value time
The CSSWG resolved that inert nodes should behave as if they had 'pointer-events: none', but without changing the computed style. w3c/csswg-drafts#6685 (comment) This is done by adding a public ComputedStyle::UsedPointerEvents() that returns EPointerEvents::kNone for inert, and privatizing the existing ComputedStyle::PointerEvents() just for friend classes. Note that computed_style_fields.py needs to be tweaked, otherwise the automatically generated PropagateIndependentInheritedProperties() would still try to call ResetPointerEventsIsInherited(), which is no longer defined. Now it needs to be ResetPointerEventsIsInheritedInternal(). After this change, it will be possible to remove the hit-testing retargeting for inert. Bug: 692360 TEST=external/wpt/html/semantics/interactive-elements/the-dialog-element/dialog-inert.tentative.html TEST=external/wpt/inert/inert-computed-style.html Change-Id: I720908d3e1c47d7cd13b9fe9e1110e44ff70f56b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3281968 Reviewed-by: Anders Hartvoll Ruud <[email protected]> Reviewed-by: Rune Lillesveen <[email protected]> Commit-Queue: Oriol Brufau <[email protected]> Cr-Commit-Position: refs/heads/main@{#942180}
- Loading branch information
1 parent
7d82b9f
commit 6aadd45
Showing
14 changed files
with
29 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
4 changes: 0 additions & 4 deletions
4
...tml/semantics/interactive-elements/the-dialog-element/dialog-inert.tentative-expected.txt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
third_party/blink/web_tests/external/wpt/inert/inert-computed-style-expected.txt
This file was deleted.
Oops, something went wrong.