-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[inert] Force 'user-select: none' on inert nodes at used-value time
The CSSWG resolved that inert nodes should behave as if they had 'user-select: none', but without changing the computed style. w3c/csswg-drafts#6685 (comment) This is done by adding a public ComputedStyle::UsedUserSelect() that returns EUserSelect::kNone for inert, and privatizing the existing ComputedStyle::UserSelect() just for friend classes. This doesn't seem to have much impact to editing since IsSelectable() was already checking IsInert(). But now accessibility will set kNotUserSelectableStyle=true when inert. Bug: 692360 TEST=All/DumpAccessibilityTreeTestWithIgnoredNodes.InertAttribute/blink AX-Relnotes: Inert nodes will be considered non-selectable. Change-Id: Iffc15fb90976234768721a6e006de9b6defeee55 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3460673 Reviewed-by: Aaron Leventhal <[email protected]> Reviewed-by: Rune Lillesveen <[email protected]> Commit-Queue: Oriol Brufau <[email protected]> Cr-Commit-Position: refs/heads/main@{#971185} NOKEYCHECK=True GitOrigin-RevId: f1944a2f4cd881ac3b985059e440ecb5384735eb
- Loading branch information
1 parent
89d0fcc
commit e854b79
Showing
7 changed files
with
20 additions
and
8 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