Bug 1864358 [wpt PR 43101] - Add invoketarget logic for audio and video, a=testonly
commitc2abb093532b049809432d355042d8373dec45e9
authorLuke Warlow <luke@warlow.dev>
Mon, 20 Nov 2023 11:10:23 +0000 (20 11:10 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 22 Nov 2023 09:34:15 +0000 (22 09:34 +0000)
treed5dea72b8a1b68f80ac6109728b6103d601fcbb8
parent2c11041eca52b220bf0024074ae483214752f56f
Bug 1864358 [wpt PR 43101] - Add invoketarget logic for audio and video, a=testonly

Automatic update from web-platform-tests
Add invoketarget logic for audio and video

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

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

This implements HandleInvokeInternal on HTMLMediaElement with playpause,
pause, play and mute actions.

Bug: 14971721497173
Change-Id: Id3dc9f36f6bc6a3293e99a9056c0736a9726cdb6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5018214
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Luke <lukewarlow156@gmail.com>
Cr-Commit-Position: refs/heads/main@{#1225369}

--

wpt-commits: deba695067b72eeb7b43130466d8bcfa9234ae56
wpt-pr: 43101
testing/web-platform/tests/html/semantics/invokers/invoketarget-on-audio-behavior.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/semantics/invokers/invoketarget-on-video-behavior.tentative.html [new file with mode: 0644]