[wpt-sync] Sync PR 23781 - Add tests for proxying modifier clicks on label to labeled elements
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox88 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 23781 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/23781
Details from upstream follow.
Mu-An Chiou <me@muanchiou.com> wrote:
Add tests for proxying modifier clicks on label to labeled elements
On platforms where clicking a label activates the form control, clicking the label in the following snippet could trigger the user agent to fire a click event at the input element, as if the element itself had been triggered by the user (Spec)
These tests are for a behavior reported in https://bugzilla.mozilla.org/show_bug.cgi?id=559506.
I ran them locally on Safari, Chrome, and Firefox on macOS. They pass in Chrome and Safari, but fail in Firefox.
I've also manually tested this using browserstack on Windows in Chrome, Edge 18/81, Firefox, and Firefox's behavior is slightly different where alt+click will trigger click, but still not the others.
On macOS ctrl clicks are right clicks and trigger context menus, so I just didn't include them.
This test file is based on
html/semantics/forms/the-label-element/proxy-click-to-associated-element.html. Currently these fail on Firefox as timeouts as the click listeners were never reached. I'd love suggestions on how to make them fail more explicitly.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 3•5 years ago
|
||
Comment 4•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4a2fb56c926a
https://hg.mozilla.org/mozilla-central/rev/793e8842ebdf
Description
•