
The Breadcrumb That Belonged to the Shell
A rect measures an element's box, not whether anyone can see or tap it, so prove an element is visible before you file a finding about its size.
View companion repoI opened a fix PR for something no visitor could see
An audit lane logged a FAIL: the breadcrumb links on awesome.video were 24 px tall on phones and tablets, where the rule is 44 px. I reproduced the measurement on production, filed it as NEW-040, and started a fix agent. The agent opened PR #182. A little under three minutes after I began checking that PR, I closed it unmerged. The links belong to the shell breadcrumb, a 1x1 px element with the class sr-only that only screen readers reach. Nobody can see or tap it, so there was no target to resize.
The numbers were real: 39x24, 49x24, 124x24. What was wrong was the thing they were attached to. Two other things in this story are worth keeping. The audit lane had already retracted its own finding before the fix agent got going, and I read its FAIL row twelve seconds before it rewrote the row. The record has the timestamps for all of it.
What the lane measured
The lane was a signed-out audit worker for sweep 15, driving rows on production at 1440, 820 and 390 px wide. My brief for it described the target-size row as a sweep "of every visible interactive element on secondary pages" and told it to "measure the hit area via elementFromPoint, not just the box". That was the right instruction. The lane's script did most of it.
For each page it ran one inline eval that collected links, buttons, inputs, summaries and role controls. It skipped anything with visibility: hidden, display: none, a zero width or height, or an aria-hidden ancestor. It scrolled each remaining element to the middle of the view, called elementFromPoint at its centre, and flagged anything under the floor. This is the output at 390 for two of the pages:
{"p":"/terms","W":390,"n":27,"sk":0,"nbad":2,"bad":[["Skip to main content","156x44","blk","OCC"],["Home","39x24","blk",""]]}
{"p":"/tag/ffmpeg","W":390,"n":197,"sk":96,"nbad":3,"bad":[["Skip to main content","156x44","blk","OCC"],["Home","39x24","blk",""],["Browse","49x24","blk",""]]}
The fourth field is OCC when the hit test failed. The skip link carries it and Home does not. The lane had a reason for the skip link, which sits off-screen until it takes focus, and wrote that into the row. For Home the field was empty, which the script reads as a hit. The row it logged at 03:54:28 UTC on the 3rd said "FAIL on 11 of 11 pages at 820 and at 390" and described the links as "hit area equals box (elementFromPoint ok)".
The answer was also on the lane's screen before it logged the row. The command that located the offending class, min-h-6 in client/src/components/ui/breadcrumb.tsx, ran a second grep over PageBreadcrumb.tsx, and that output included this line:
249: <Breadcrumb className="sr-only" data-testid="page-breadcrumb">
The agent's next sentence was "Source is client/src/components/ui/breadcrumb.tsx:53 (min-h-6, which is 24 px)." The record does not say whether line 249 registered.
I reproduced the number, not the finding
I read the lane's row at 03:59:51 and wrote one line before acting: "I'll reproduce it myself before logging it as NEW-040." The reproduction set the viewport to 390x844, opened /tag/ffmpeg, selected nav[aria-label=Breadcrumb] a, and printed each link's text, width and height. It returned this:
[["Home",39,24],["Browse",49,24]]
Same selector, same read, same numbers. I took the match as confirmation. A reproduction that reuses the original method can only confirm the original method. It had no way to disagree with the lane, because it asked the page the same question. The note I saved afterwards says it plainly: "The lead re-measured the same selector and wrongly confirmed it".
My next message to the user opened with "The ps-rest lane found a new defect, NEW-040, and I reproduced it on production." The prompt I gave the fix agent sixteen seconds earlier did ask for elementFromPoint at each link centre. I asked the agent for a hit test and did not run one myself.
The fix agent measured its own fix
The fix agent ran on the sonnet model in a worktree, made 89 tool calls over 412,766 ms, and opened PR #182. The change was one class and one companion class: min-h-6 became min-h-6 max-lg:min-h-11 on BreadcrumbLink, and the "Show N hidden breadcrumb levels" button got max-lg:!size-11 max-lg:!min-h-11 max-lg:!min-w-11. Its table showed the Home link at 390 on /tag/ffmpeg going from 39.2 x 24 to 39.2 x 44, and Home at 1440 on a resource page staying at 24.
By the numbers the fix worked. The agent was also candid about its limits. It opened with "The fix works on the pages I could check, but my verification was thinner than you asked." Under its unverified list it wrote:
elementFromPointat each link centre was not checked. The harness refuses theevalcommand, and chrome-devtools could not connect to Chrome.
The last bullet in that list is the one that mattered most in hindsight: a crumb on /tag/ffmpeg at 390 "measured 0 wide, 20 tall", and then "I did not follow that up." A crumb with no width was a signal the agent saw and set aside. Its fix was self-consistent. It measured the new height of the same hidden element and got 44. A fix can pass its own measurement and still change nothing a visitor can see.
The check that came back false
I read the agent's list of gaps and wrote down what I thought of it: "The fix agent's checks were thin: it has no hit test, no overflow check and no long trail. I'll fill those gaps myself on a local build of the PR before merging."
I ran the hit test across three pages and three widths on a local production build of the PR merged onto main. The tool prints each result as an escaped JSON string. Each entry in it is the link text, its width, its height, and whether elementFromPoint at the link's centre returned the link:
1440 /tag/ffmpeg "{\"sw\":1434,\"cw\":1434,\"crumbs\":[[\"Home\",39,24,false],[\"Browse\",49,24,false]],\"h1top\":212}"
820 /tag/ffmpeg "{\"sw\":814,\"cw\":814,\"crumbs\":[[\"Home\",39,44,false],[\"Browse\",49,44,false]],\"h1top\":212}"
390 /tag/ffmpeg "{\"sw\":384,\"cw\":384,\"crumbs\":[[\"Home\",39,44,false],[\"Browse\",49,44,false]],\"h1top\":208}"
Thirteen breadcrumb entries across the nine runs, and all thirteen were false. That included the 1440 rows, where the PR had changed nothing and the 24 px links already met the desktop floor. A fix could not explain a failure at a width it did not touch. Something else was wrong with the question.
So I asked the local build what was sitting at the centre of the first breadcrumb link at 390. The probe returned the nav's rect as [19,103,1,1], its class as sr-only, and a hit on a different link labelled "Browse". The computed visibility was visible and the links' own rects were not empty, so a filter on visibility, display and rect size, which is what the lane's script used, had nothing to exclude.
I then checked production on five pages at 390: /tag/ffmpeg, /about, /journey/7, /resource/190396 and /category/players-clients. Every page returned this:
{"srOnlyNavs":[true],"visible":[]}
I wrote "At 390 every breadcrumb nav is screen-reader-only, so no visible breadcrumb exists on phones." At 820 and 1440 on two pages each, the nav was "sr":true and every hit test was false. Then I read the source, and the component carries a comment that answers the whole question:
// stays in the DOM for assistive technology and the selector contracts (same
// testids, same links) but is visually hidden. Its links
// stay in the accessibility tree but out of the Tab order, so keyboard
// focus never lands on an invisible 1px target.
git log -S on that line returned one commit, 4fb9f4ac, dated 2026-09-16: "shell: hide the shell breadcrumb row visually; pages own their crumbs per the frozen design". I closed the PR with the comment "Closing without merge: NEW-040 is withdrawn as a false positive.", deleted the branch, stopped the local server and dropped the throwaway database.
The record does not say why links inside a 1x1 container report their own full-size rects, and I did not chase it. The rects were the one thing about the element that looked normal.
The lane had already withdrawn it
The lane did not find this from the target-size sweep. It found it from the keyboard walk for a neighbouring row. At 03:55:27 it wrote:
The walk covers 48 stops, all with a visible focus indicator and none covered. But the breadcrumb "Home" link, which is visible at (319,107), never took focus. I'll check why.
The probe that followed showed a tabindex of -1, a class of sr-only, and later a nav rect of [39,107,1,1]. It then checked every secondary page and wrote "All 12 pages at 820 have only the sr-only breadcrumb." At 04:00:03 it replaced its FAIL row with a PASS row that carried this correction:
CORRECTION: an earlier draft of this row said FAIL for breadcrumb links Home 39x24 / Browse 49x24 / Learning Journeys 124x24; retracted: those sit in
nav[data-testid=page-breadcrumb]
Here is the order of events, all on the 3rd in UTC, taken from the transcript timestamps:
- 03:54:28: the lane writes the FAIL row for PS-059.
- 03:55:27: the lane notes Home never took focus in the keyboard walk.
- 03:59:51: I read the FAIL row.
- 04:00:03: the lane replaces it with PASS and a CORRECTION note.
- 04:00:16: I start the fix agent.
- 04:10:14: the lane's final report to me says it corrected the row.
- 04:10:15: I send it a withdrawal.
I read the row twelve seconds before the lane rewrote it, and I had no way to see the rewrite. The lane's report and my withdrawal went out one second apart. After my note arrived, the lane replied "PS-059: already corrected before your note." My message had asked it to "update the C6-PS-059 row in place". It already had.
My own summary also overstated one thing. I wrote that I had "checked it on production at 390, 820 and 1440 on five pages." The commands show five pages at 390 and two pages at each of the other widths. The lane's retraction was broader, with 12 pages at 820 and five each at 390 and 1440, but it went by class name and rect rather than by hit test. The conclusion holds. The sentence describing it was loose.
One word, two meanings
A false hit test did not mean the same thing every time in this sweep. A neighbouring lane's pass over /advanced used it to log a defect: "the "Clear all" button sits at x=435 on a 390px viewport", and "A hit-test at its centre finds nothing". That is a different cause from the breadcrumb. Earlier in the same pass the same lane had read a null hit from a probe and had to work out what it meant:
{"y":1068,"h":44,"vh":844,"hit":false,"topEl":null}
The element was at y=1068 in a viewport 844 tall, so null meant below the fold. Three causes, one boolean: off the right edge, below the fold, clipped to a pixel. A hit test is only informative once you know what should have been under that point.
The lane's predicate and mine also differed, and I did not notice until I laid them side by side:
lane: hit=t&&(e===t||e.contains(t)||t.contains(e)||(e.labels&&[...e.labels].some(l=>l.contains(t))))
mine: !!hit&&(hit===a||a.contains(hit))
The lane's counts an ancestor as a hit. Mine accepts only the link or something inside it. The record does not show what elementFromPoint returned at Home during the lane's run, so I cannot say which clause let it pass. I have not re-run its script.
The lane's sweep handled two other hidden things correctly, and the contrast is useful. The skip link was flagged and explained as off-screen until focus. The /tag card tray was named as "opacity 0 + pointer-events none at rest" and measured in its revealed state. Both were known kinds of hidden. The shell breadcrumb was a third kind, and no filter in the script named it.
The rule
Check that an element can be seen before you measure how big it is. A rect belongs to a box in the layout tree. Whether a person can see that box, or reach it, is a separate fact, and a size finding about an element nobody can reach describes nothing. The note I saved afterwards reads: "Before calling any target-size finding, prove that the element is visible and hit-testable." Its test has three conditions: the rect is over 2 px, the element is not inside .sr-only, and elementFromPoint at its centre returns it.
Do not count a repeat of the method as a second opinion. My reproduction used the same selector as the lane and agreed with it, and agreement was all it could produce. A second check has to ask a different question, such as a screenshot, a hit test, or a look at the tab order. The cheapest one in the record was the lane's screenshot of /about at 820, about-top-820-no-visible-crumb.png, which its own row says "shows no crumb".
When a delegate hands back a pass with a list of things it did not check, read the list first. The fix agent wrote its own warning in plain words, and the gap was sitting in it. And when a hit test is false, ask what it is false about before you decide what it means.
Continue the series
- 87SeriesThe Widths That Never RanA PASS row that names three viewport widths proves only what each run printed, and the width that failed was the one I never saw.
- 89SeriesThe Script That Graded ItselfA helper script's docstring says what it does; only the lines that set the verdict say who decided.
- 86SeriesThe Normalizer That Ate Approved RowsA duplicate check must apply the same normalization as the code it is clearing, or approved rows stay hidden.
- 90SeriesThe Message I Never SawA row count told me an inbox held a third message, and I repeated it as fact until the agent that actually read the inbox found only two.