ov.capture.probes.a11y#
Accessibility-signals probe: computed text styles (for contrast) + optional axe.
Contrast cannot be judged from static DOM – it needs computed colors. This
probe snapshots, per visible text element, the effective foreground/background
colors, font size/weight, and bbox, so the deterministic
ov.analysis.ux.contrast_focus analyzer can compute WCAG ratios offline.
If an axe-core bundle is resolvable (OV_AXE_PATH or the sidecar’s
node_modules/axe-core/axe.min.js), it is injected and axe.run() results
are stored as an axe artifact – additive, never required. axe-core is used
as an external tool here (no vendoring), keeping the package license-clean.
Classes
Capture computed text styles (always) + axe-core results (when available). |