Open ffoodd opened 7 years ago
More examples from @Heydon's "Apps for all":
[role="status"]:not([aria-live="polite"])
[role="alert"]:not([aria-live="assertive"])
[aria-live="polite"]:not([role="status"])
[aria-live="assertive"]:not([role="alert"])
[role="tablist"] a:not([role="tab"])
: not quite sure about this one…[role="tabpanel"]:not([id])
[role="tab"]:not([aria-controls])
I don’t see why you’d separate this from the rest—it’s a whole bunch of “if you’re doing fancy ARIA stuff, make sure you’re doing it properly” things; people that aren’t using ARIA won’t be affected. The negative impact of poorly-implemented ARIA stuff is often higher than no ARIA stuff, so I think it’s worthwhile foisting this on everyone.
Good point! And in fact we'll probably have errors, warnings and advices too, makes sense to stick to the current levels.
Another resource that could be checked: display-wai-aria.css by @masuP9 :)
And another one, with a dedicated required attributes column per pattern on whatsock.com.
Some from @felixzapata too: cssTest-a11y. Not only ARIA ones :)
Following WAI-ARIA Authoring Practices, we can create tons of selectors to test what's testable :)
eg:
but since it would be pretty heavy — and also kinda specialized — I think it should be a separate level file. Some new tests regarding ARIA would also move to this new level…