Bug 1811404 [wpt PR 38074] - Add delegatesFocus check to tabindex blurs, a=testonly
commite60a19cd7e9f0203bd39644deb5567e6221e22d6
authorJoey Arhar <jarhar@chromium.org>
Fri, 27 Jan 2023 15:28:35 +0000 (27 15:28 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 1 Feb 2023 14:00:02 +0000 (1 14:00 +0000)
tree97e264de8d49d420e1079d4bf78e77d3569e89f3
parentf0e1771a84690235d4dd76d6bd162a8cc6bfcade
Bug 1811404 [wpt PR 38074] - Add delegatesFocus check to tabindex blurs, a=testonly

Automatic update from web-platform-tests
Add delegatesFocus check to tabindex blurs

Element::AttributeChanged will blur itself if its tabindex changes and
the element no longer supports focus. However, this check for supporting
focus does not consider delegatesFocus. This patch adds a check for a
child focusable element in the case that delegatesFocus is present.

Fixed: 1346606
Change-Id: I2757c9e4c103e98d3f32c8f73cdca9f7930c0d23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4182591
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1096629}

--

wpt-commits: 61fe1ff61025aff963c4a306559bb217c63fad4e
wpt-pr: 38074
testing/web-platform/tests/shadow-dom/focus/delegatesFocus-tabindex-change.html [new file with mode: 0644]