Skip to content
2SOLID AI

Insights

What screenshots can't measure — a computed-style audit of the whole site

· accessibility · audit · verification

Earlier audits of this site read screenshots. Screenshots are honest about what a page looks like and silent about what it computes — and the gap between those two turned out to be where the real defects lived.

This is the story of tools/audit-dom.mjs: a census that measures computed styles instead of pixels, across every route at desktop and mobile widths.

Why measurement, not eyes

A contrast failure is not visible in a screenshot unless you already suspect it. A tap target that’s 15px tall looks fine until you measure it. The audit’s premise was simple: every claim the DOM makes — colors, sizes, spacing — is a number, and numbers can be checked.

The tool loads each built page in Chromium, walks the rendered DOM, and records computed styles: text/background color pairs run through the WCAG contrast formula, interactive elements get their bounding boxes measured, headings are checked for skipped levels, images for missing alt text, buttons for empty labels.

Every built route at desktop and mobile widths — over fifty page-viewport pairs. The first run reported fifty-two issue classes. Most were noise. Two were real.

The real findings

Hero labels at 4.41:1. The axis and readout labels on every canvas hero used #5f7ba3 on the #0a0f1e deep background — a measured 4.41:1 contrast ratio, below the 4.5:1 WCAG AA threshold for normal text. Worse under the readout’s 0.9 opacity, which composites to roughly 3.8:1. Every instrument on the site was legible to a designer’s eye and formally failing to a screen reader’s requirements. Bumped to #6a8ab5 → ~5.4:1, ~4.6:1 at reduced opacity. One token, every hero, fixed at once.

Footer links with 15px targets. The legal and story links in the footer measured 15 pixels tall on eight-pixel gaps — under the 24px spacing threshold WCAG 2.5.8 sets for pointer targets. On a phone, that’s a mis-tap waiting to happen. gap-y-2 became gap-y-3, producing 24px pitch. Verified by re-measuring, not by looking.

Everything else the census flagged — nav mega-menu items, pillar links — measured above threshold on inspection. Borderline findings get verified before they get fixed; the audit’s value is in the misses it catches, not the volume it reports.

What the second run said

Re-running the census after the fixes: forty-eight issue classes remained — all tap-target observations at the borderline, none above the hard failures. Zero contrast failures. Zero console errors. Zero horizontal overflow. Zero heading skips. Zero missing alt text. Zero empty buttons.

The tools live in site/tools/ next to the perf census — audit-dom.mjs for computed style, audit-visual.mjs for fold screenshots. Both run against dist/ via the static server, both are re-runnable by the next agent session, and neither requires credentials.

The pattern

Three audits now form a trilogy of the same argument:

  • Content — does the site agree with itself? (the register gates)
  • Performance — do the instruments hold frame budget? (the census)
  • Presentation — do the computed styles meet the standard they claim? (this audit)

Each found real defects that reading could not. Each fix was verified by re-measurement, not by impression. And each instrument stays in the repo — the next drift gets caught by the same tool that caught this one.

The site claims engineering grade. These are the receipts.