Skip to content

Commit

Permalink
Bug 1783294 [wpt PR 35345] - Remove delegatesfocus behavior from popu…
Browse files Browse the repository at this point in the history
…p, a=testonly

Automatic update from web-platform-tests
Remove delegatesfocus behavior from popup

The OpenUI resolved [1] to punt this part of the proposal until
later, when it might be built in a more general-purpose way.

[1] openui/open-ui#368 (comment)

Bug: 1307772
Change-Id: I2346791cf8a4e8ba7b2d1d51073d82cc212a4cf2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3811398
Auto-Submit: Mason Freed <masonf@chromium.org>
Reviewed-by: Joey Arhar <jarhar@chromium.org>
Commit-Queue: Joey Arhar <jarhar@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1032067}

--

wpt-commits: 3b3bc3508d17e0fbfe335a4fd5c593a3c0a4fdb6
wpt-pr: 35345
  • Loading branch information
mfreed7 authored and moz-wptsync-bot committed Sep 4, 2022
1 parent d935cc2 commit 511b2e8
Showing 1 changed file with 0 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,49 +49,6 @@
<button autofocus>second autofocus button</button>
</div>

<div popup delegatesfocus data-test='delegatesfocus pop-up'>
<p>This is a pop-up</p>
<button class=should-be-focused>first button should be focused</button>
<button>second button</button>
</div>

<div popup delegatesfocus data-test='delegatesfocus takes precedence over autofocus'>
<p>This is a pop-up</p>
<button class=should-be-focused>first button</button>
<button autofocus>autofocus button should NOT be focused</button>
</div>

<div popup delegatesfocus autofocus data-test='delegatesfocus takes precedence over autofocus 2'>
<p>This is a pop-up</p>
<button class=should-be-focused>first button</button>
<button>autofocus button should NOT be focused</button>
</div>

<div popup delegatesfocus data-test='delegatesfocus on empty pop-up has no effect' data-no-focus></div>

<div popup data-test='delegatesfocus on child has no effect' data-no-focus>
<p>This is a pop-up</p>
<button delegatesfocus>first button</button>
</div>

<div popup delegatesfocus data-test='delegatesfocus skips contained pop-ups'>
<p>This is a pop-up</p>
<div popup>
<button>Contained pop-up button</button>
</div>
<button class=should-be-focused>first button</button>
<button>autofocus button should NOT be focused</button>
</div>

<div popup delegatesfocus data-test='delegatesfocus skips contained dialogs'>
<p>This is a pop-up</p>
<dialog>
<button>Contained dialog button</button>
</dialog>
<button class=should-be-focused>first button</button>
<button>autofocus button should NOT be focused</button>
</div>

<style>
[popup] {
border: 2px solid black;
Expand Down

0 comments on commit 511b2e8

Please sign in to comment.