Skip to content

Commit

Permalink
Remove delegatesfocus behavior from popup
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Commit-Queue: Joey Arhar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1032067}
  • Loading branch information
Mason Freed authored and chromium-wpt-export-bot committed Aug 5, 2022
1 parent 853d9c3 commit a76f93a
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions html/semantics/popups/popup-focus.tentative.html
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 a76f93a

Please sign in to comment.