Skip to content

Test <dialog> + shadow DOM focus - #31523

Merged
domenic merged 4 commits into
masterfrom
dialog-shadow-focus
Nov 18, 2021
Merged

domenic merged 4 commits into
masterfrom
dialog-shadow-focus

Conversation

@domenic

@domenic domenic commented Nov 5, 2021

Copy link
Copy Markdown
Member

@domenic
domenic force-pushed the dialog-shadow-focus branch from da15f89 to 0b7d03f Compare November 5, 2021 17:15

@sefeng211 sefeng211 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests look good and reasonable.

What do you think of adding another test for a nested shadow dom with the delegates focus attribute, because autofocus can take precedence again in this case?

@domenic

domenic commented Nov 16, 2021

Copy link
Copy Markdown
Member Author

Thanks for the review! Good idea on the extra test; I added it and I think it's correct. (It sadly was a bit too much for my generic declarative testing framework, so I put it in a separate file.)

@sefeng211 sefeng211 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@josepharhar

Copy link
Copy Markdown
Contributor

I may have followup questions when I actually implement the behavior in chrome, but LGTM!

@domenic
domenic merged commit 628af0f into master Nov 18, 2021
@domenic
domenic deleted the dialog-shadow-focus branch November 18, 2021 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants