Skip to content

ADR 0006: collapse wrappers on per-node geometry evidence, keep author CSS - #7456

Draft
chubes4 wants to merge 2 commits into
trunkfrom
adr/0006-evidence-guarded-wrapper-collapse
Draft

chubes4 wants to merge 2 commits into
trunkfrom
adr/0006-evidence-guarded-wrapper-collapse

Conversation

@chubes4

@chubes4 chubes4 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Summary

ADR 0006 replaces selector-survival wrapper coalescing with per-node geometry evidence. A wrapper is removed when the captured box tree shows it contributes nothing at any captured viewport. Author CSS keeps shipping; rules whose matches change transfer to descendants as engine-owned rules. Inset-only wrappers merge into the nearest surviving box.

Status is Proposed. It becomes Accepted when slice 1 (#7454) passes the corpus gate. This PR stays a draft until then.

Why

Measurement method (cited by the ADR)

For every element in each route's captured HTML with exactly one element child and no own text, read its node and its child's node from box-tree/<route>.json (desktop file, all three viewports: 1440, 768 and 402 px). Classify it as neutral or inset-only using the ADR's conditions. Visible means not display: none and non-zero width at every viewport.

Site Visible single-child wrappers Neutral Constant inset Blocked: paint Blocked: containing block Max depth (per route)
Wix demo 445 225 10 81 75 27–28 → 22–23
Squarespace demo 1071 462 148 175 9 (+91 float) 17–21 → 13–15

The Squarespace demo also has 106 varying-inset wrappers, which are slice 2 candidates only when a declared author value reproduces the inset.

Two caveats:

Drafted by Franklin (Claude Opus via Pi, Roadie): measured from the frozen captures' box-tree sidecars and written up as the decision record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant