Closed Bug 1727153 Opened 4 months ago Closed 3 months ago

[wpt-sync] Sync PR 30127 - Remove :active on blur for button elements

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

b'Joey Arhar <jarhar@chromium.org>' wrote:

Remove :active on blur for button elements

If you focus a button, then press the spacebar down and press tab before
releasing the spacebar, focus will switch away from the button but it
will keep the :active pseudo selector. This patch fixes it by removing
:active on blur.

This patch is very similar to http://crrev.com/83786

Fixed: 945854
Change-Id: Ic8aca3ac782a2e9c07cac8c657a591a57287a238
Reviewed-on: https://chromium-review.googlesource.com/3114730
WPT-Export-Revision: 4ea1ba7a2fb74e37998ddabc2c16dc78ac623ee4

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/html/semantics/forms/the-button-element/active-onblur.html
Buttons should clear :active when the user tabs away from them while holding spacebar.: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e58e6317a1e3
[wpt PR 30127] - Remove :active on blur for button elements, a=testonly
https://hg.mozilla.org/integration/autoland/rev/93fbede834a3
[wpt PR 30127] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.