forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1856539 - Add focus navigation support for popover. r=emilio,smau…
…g,edgar This implements the focus behavior described in [1]: 1. Moves focus from an invoking element to its invoked popover, regardless of where in the DOM that popover lives. 2. Moves focus back to the next focusable element after the invoking element once focus leaves the invoked popover. 3. Skips over an open invoked popover otherwise. [1] https://html.spec.whatwg.org/#focus-navigation-scope-owner Differential Revision: https://phabricator.services.mozilla.com/D190560
- Loading branch information
Showing
5 changed files
with
193 additions
and
30 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
23 changes: 21 additions & 2 deletions
23
testing/web-platform/meta/html/semantics/popovers/popover-focus-2.html.ini
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
[popover-focus-2.html] | ||
max-asserts: 2 | ||
expected: | ||
if (os == "win") and (processor == "x86_64") and not debug: [OK, TIMEOUT] | ||
if (os == "mac") and (processor == "x86_64") and not debug: [OK, TIMEOUT] | ||
[Popover focus navigation] | ||
expected: FAIL | ||
expected: | ||
if (os == "win") and (processor == "x86_64") and not debug: [PASS, TIMEOUT] | ||
if (os == "mac") and (processor == "x86_64") and not debug: [PASS, TIMEOUT] | ||
|
||
[Circular reference tab navigation] | ||
expected: | ||
if (os == "win") and (processor == "x86_64") and not debug: [PASS, NOTRUN] | ||
if (os == "mac") and (processor == "x86_64") and not debug: [PASS, NOTRUN] | ||
|
||
[Popover focus returns when popover is hidden by invoker] | ||
expected: | ||
if (os == "win") and (processor == "x86_64") and not debug: [PASS, NOTRUN] | ||
if (os == "mac") and (processor == "x86_64") and not debug: [PASS, NOTRUN] | ||
|
||
[Popover focus only returns to invoker when focus is within the popover] | ||
expected: | ||
if (os == "win") and (processor == "x86_64") and not debug: [PASS, NOTRUN] | ||
if (os == "mac") and (processor == "x86_64") and not debug: [PASS, NOTRUN] |
Oops, something went wrong.