Fast mode

@avarok/glance@0.1.0Updated 1 min readView as markdown

Fast mode (axe.run(context, { fast: true }), a glance option axe-core does not have) may trade exactness for speed: it may miss findings or report them as incomplete, and it never reports a violation that exact mode would not. Without fast, or with fast: false, a run is in exact mode, the one compared with axe-core 4.14.1. It currently makes 2 trades, listed in the table below.

npm run -s fast-subset (conformance/fast/run.mjs, a CI job) runs every differential case in each mode under exact and fast mode. It fails on any violation only fast mode reports, and on any difference on a rule no trade lists, so a rule outside the table below gives identical results in both modes; its log prints how often each traded rule agrees. The trades are listed in conformance/fast/trades.json, from which this section is generated.

Trade Rules What it gives up
target-size-no-paint target-size No hit tests: a target is judged from stored boxes only where no other target could change the answer. A large target that overlaps no other target passes on size, and one with no target within minOffset of its box passes on spacing; every other target, including each one exact mode would fail, is incomplete.
link-in-text-block-no-colour link-in-text-block The colour comparison (contrast with the surrounding text, backgrounds, overlap) is not computed: a link with a non-colour style cue passes as in exact mode, and every other link is incomplete, including each one exact mode would pass or fail on colour.