Understand the Axe-core Architecture (Rules and Checks)
developAxe-core tests for accessibility using a hierarchy of Rules and Checks.
- Rules: High-level accessibility aspects (e.g., color contrast, button labels). A Rule consists of one or more Checks. A Rule passes if its required Checks pass (based on
any,all, ornonelogic). - Checks: The granular tests that perform the actual evaluation. A Check returns
true,false, orundefined.
Rules are defined in JSON files in lib/rules and Checks in lib/checks.