Bug 1826405 [wpt PR 39374] - Use dialog focus algorithm for dialog popovers, a=testonly
commit858f4917d08d8ade08f9f37d5bf834f837b8e6a4
authorJoey Arhar <jarhar@chromium.org>
Wed, 17 May 2023 11:37:56 +0000 (17 11:37 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sun, 21 May 2023 22:42:30 +0000 (21 22:42 +0000)
tree2c417c0b0d2a1561a7092fffd5156ea0f7f47cd9
parent9e08008e0b60037b1a120fa55d7a2f32d0595453
Bug 1826405 [wpt PR 39374] - Use dialog focus algorithm for dialog popovers, a=testonly

Automatic update from web-platform-tests
Use dialog focus algorithm for dialog popovers

This patch makes it so that when a <dialog popover> gets opened as a
popover, it uses the dialog initial focus algorithm instead of the
popover initial focus algorithm.

The popover initial focus algorithm only focuses descendants with the
autofocus attribute, whereas the dialog initial focus algorithm focuses
anything that's focusable.

HTML spec PR: https://github.com/whatwg/html/pull/9121

Fixed: 1430405
Change-Id: I627d8ab9045ecdad8d8265fab95b68e571227685
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4400070
Reviewed-by: Mason Freed <masonf@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Code-Coverage: Findit <findit-for-me@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1135058}

--

wpt-commits: 4ca635da82690ad04ff64e665c0ac7c57fce2203
wpt-pr: 39374
testing/web-platform/tests/html/semantics/popovers/popover-dialog-initial-focus.html [new file with mode: 0644]