dequelabs / axe-core

Accessibility engine for automated Web UI testing
https://www.deque.com/axe/
Mozilla Public License 2.0
5.75k stars 746 forks source link

Support `slot` element as part of the virtual tree #4507

Open straker opened 1 week ago

straker commented 1 week ago

Currently axe-core ignores slot elements and does not add them to the virtual tree. However we've come to understand that slot elements can use CSS to become a visible element (by changing the display property) and can even be given a background color, can have be used as the target of an IDREF ARIA attribute, and should probably alert users of incorrect use of ARIA attributes and role.