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

:has() use cases #433

Open
ffoodd opened this issue Jan 17, 2022 · 1 comment
Open

:has() use cases #433

ffoodd opened this issue Jan 17, 2022 · 1 comment

Comments

@ffoodd
Copy link
Owner

ffoodd commented Jan 17, 2022

Probably tons of new tests to find, using :has(). A few resources:

Checking for some patterns based on nesting elements, or some ARIA design patterns, should become possible!

Also it'd allow to drop the current %a11y-reset placeholder.

@ffoodd
Copy link
Owner Author

ffoodd commented Jul 27, 2022

@KittyGiraudel opens a new door checking details:not(:has(> summary)):not([tabindex^="-"]) in focusable-selectors. Checking for required children (apart from their focusability) is a new step forward validating HTML through CSS.

Need time to play with this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
Status: To do
Development

No branches or pull requests

1 participant