I shipped a page that reported zero axe violations. It had button text at a contrast ratio of 1.04:1 — which is, for practical purposes, invisible text.
The scan wasn't broken. It was answering a narrower question than I thought I was asking.
The bug
I had a theme system built the ordinary way. Tokens on :root, overridden in a prefers-color-scheme media query, and overridden again by an explicit [data-theme] attribute so a manual toggle wins in both directions.
Buttons came in two flavours: a solid primary and a bordered secondary.






