Closed Bug 1861832 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42824 - Add invoketarget logic for details

Categories

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

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Luke Warlow <luke@warlow.dev> wrote:

Add invoketarget logic for details

This adds the logic on how buttons with an invoketarget pointing to a
details element should behave, based on the Invokers proposal.

See explainer section here:
https://open-ui.org/components/invokers.explainer/#defaults.

This implements HandleInvokeInternal on HTMLDetailsElement with the
auto, toggle, close and open actions.

Bug: 1497154
Change-Id: Iff06abdbe3a94fa29e4a2b5c3f67519928f12c4c
Reviewed-on: https://chromium-review.googlesource.com/4987521
WPT-Export-Revision: 13d3fdc68614a3370ae3014be284d12d12789f9f

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

CI Results

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

Total 1 tests and 17 subtests

Status Summary

Firefox

OK : 1
PASS: 8
FAIL: 9

Chrome

OK : 1
PASS: 8
FAIL: 9

Safari

OK : 1
PASS: 8
FAIL: 9

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/semantics/invokers/invoketarget-on-details-behavior.tentative.html [wpt.fyi]
    • invoking closed details with auto action opens: FAIL (Chrome: FAIL, Safari: FAIL)
    • invoking open details with auto action opens: FAIL (Chrome: FAIL, Safari: FAIL)
    • invoking closed details with toggle action opens: FAIL (Chrome: FAIL, Safari: FAIL)
    • invoking closed details with toggle (case-insensitive) action opens: FAIL (Chrome: FAIL, Safari: FAIL)
    • invoking open details with toggle action closes: FAIL (Chrome: FAIL, Safari: FAIL)
    • invoking closed details with open action opens: FAIL (Chrome: FAIL, Safari: FAIL)
    • invoking closed details with open (case insensitive) action opens: FAIL (Chrome: FAIL, Safari: FAIL)
    • invoking open details with close action closes: FAIL (Chrome: FAIL, Safari: FAIL)
    • invoking open details with close (case insensitive) action closes: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ebae5e2f2717 [wpt PR 42824] - Update wpt metadata, a=testonly
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5ffa1d241f7d [wpt PR 42824] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.