-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1614658 - Enable accessibility.mouse_focuses_formcontrol by defau…
…lt. r=mac-reviewers,bradwerth,mstange This aligns Mac's focus model with other platforms. Matches Chromium, but not Safari. Reasons why I think it's worth making this change: * Consistency with all other platforms. * Makes the :focus-visible implementation more useful. * Fixes focus navigation after e.g. clicking a button. * Shouldn't cause a lot more outlines to show up (at least not by default). An example of the second point: data:text/html,<button onclick="this.nextElementSibling.focus()">Click</button><button>Imagine I'm a dialog close button or something</button> In non-macOS platforms, we won't show an outline for the button in that case, which matches the developer expectations (links below). We don't show the outline because the focus comes from an element that has been focused by mouse (and thus didn't show an outline). But on macOS that doesn't work, because the button is not focused. For completeness, the actual heuristics for :focus-visible may change a bit as a result of the discussions in: * w3c/csswg-drafts#5885 * web-platform-tests/wpt#27806 But it's not clear to me how to best define this so it works on the macOS focus model. An example of the third point: data:text/html,<input type=text><input type=submit><input type=text> On Safari and Chrome (and Firefox on non-macOS platforms), clicking the button, then pressing tab, goes to the input on the right. In Firefox on macOS it doesn't because the button doesn't gain focus nor is selectable. Differential Revision: https://phabricator.services.mozilla.com/D108808
- Loading branch information
Showing
7 changed files
with
11 additions
and
82 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
39 changes: 0 additions & 39 deletions
39
testing/web-platform/meta/css/selectors/focus-visible-003.html.ini
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
testing/web-platform/meta/css/selectors/focus-visible-004.html.ini
This file was deleted.
Oops, something went wrong.