ffoodd/a11y.css

:has() use cases

Opened this issue · 1 comments

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.

@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 :)