Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[selectors] Add test for :focus-visible and Shadow DOM #28131

Merged
merged 1 commit into from
Apr 20, 2021

Conversation

mrego
Copy link
Member

@mrego mrego commented Mar 18, 2021

This test check that :focus-visible doesn't match on the ShadowRoot, otherwise UAs would end up showing two focus indicators.

@mrego
Copy link
Member Author

mrego commented Mar 18, 2021

This test comes from a discussion on the CSSWG. This needs changes on the spec before merging, so I'm not asking for a review on this yet.

css/selectors/focus-visible-020.html Outdated Show resolved Hide resolved
css/selectors/focus-visible-020.html Show resolved Hide resolved
css/selectors/focus-visible-020.html Outdated Show resolved Hide resolved
@mrego
Copy link
Member Author

mrego commented Apr 20, 2021

Thanks for the review @emilio, uploaded new version applying the suggested changes.

css/selectors/focus-visible-020.html Outdated Show resolved Hide resolved
This test check that :focus-visible doesn't match on the ShadowRoot,
otherwise UAs would end up showing two focus indicators.
@mrego mrego merged commit aba7d28 into web-platform-tests:master Apr 20, 2021
@mrego mrego deleted the focus-visible-shadow-dom branch April 20, 2021 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants