Closed Bug 1684514 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 27018 - [selectors] Add new :focus-visible tests

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 27018 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/27018
Details from upstream follow.

b'Manuel Rego Casasnovas <rego@igalia.com>' wrote:

[selectors] Add new :focus-visible tests

These tests check what happens when an active element
matches (or not) :focus-visible, and a script causes focus
to move elsewhere.

Basically these are tests for the next two points of the spec
(https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo):

  • If the active element matches :focus-visible, and a script
    causes focus to move elsewhere, the newly focused element
    should match :focus-visible.
  • Conversely, if the active element does not match :focus-visible,
    and a script causes focus to move elsewhere,
    the newly focused element should not match :focus-visible.
Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

CI Results

Ran 14 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 3
PASS: 3

Chrome

OK : 3
PASS: 3

Safari

OK : 3
FAIL: 3

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d4b0f30d7320 [wpt PR 27018] - [selectors] Add new :focus-visible tests, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.