Closed Bug 1743406 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 31776 - Test that if a focused element becomes expressly inert, it stops being focused

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Oriol Brufau <obrufau@igalia.com> wrote:

Test that if a focused element becomes expressly inert, it stops being focused

https://html.spec.whatwg.org/multipage/interaction.html#focus-fixup-rule

Blink passes the test now, used to fail before https://crrev.com/941651
since enabling inertness was not enough, also needed a style recalc.

Firefox and WebKit fail the test since they don't seem to implement
the focus fixup at all, e.g. removing tabindex attr doesn't work either.

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 1 tests and 6 subtests

Status Summary

Firefox

OK : 1
FAIL: 6

Chrome

OK : 1
FAIL: 6

Safari

OK : 1
FAIL: 6

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/inert/dynamic-inert-on-focused-element.tentative.html
<input> that gets 'inert' attribute: FAIL (Chrome: FAIL, Safari: FAIL)
<input> whose parent gets 'inert' attribute: FAIL (Chrome: FAIL, Safari: FAIL)
<button> that gets 'inert' attribute: FAIL (Chrome: FAIL, Safari: FAIL)
<div> that gets 'inert' attribute: FAIL (Chrome: FAIL, Safari: FAIL)
<div> whose parent gets 'inert' attribute: FAIL (Chrome: FAIL, Safari: FAIL)
<div> whose grandparent gets 'inert' attribute: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a3f3bb6b6351
[wpt PR 31776] - Test that if a focused element becomes expressly inert, it stops being focused, a=testonly
https://hg.mozilla.org/integration/autoland/rev/890bdfb8b2cf
[wpt PR 31776] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.