Skip to content

fix(css): prune unreferenced whole-site keyframe inventories - #6331

Open
chubes4 wants to merge 3 commits into
trunkfrom
fix/issue-6145-blocks-engine-12
Open

chubes4 wants to merge 3 commits into
trunkfrom
fix/issue-6145-blocks-engine-12

Conversation

@chubes4

@chubes4 chubes4 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Merged trunk 169d08d into the branch: kept trunk's UnusedDefinitionPruner (unused @Keyframes and embedded @font-face), removed the superseded UnusedKeyframePruner, and kept whole-site evidence (siteSelectorEvidence) as the pruner's input
  • AuthorStylesheetProjector: moved the check that decides whether a selector needs the background guard into backgroundGuardOffset(), which looks inside :is()/:where() arguments; the guard is dropped only when every argument already requires a class, ID or non-image element type
  • Added tests/unit/background-guard-hooked-matches-any.php (fails before the fix, passes after; :is(img,.photo) still keeps the guard)

Verification

  • acceptance=$(mktemp); bash "$IMPORT_LOOP_GATE" >"$acceptance" 2>&1 & gate=$!; (w: passed on f0310fe. Base trunk@a29d9ab advanced to 3ce21c3. 1695414 ms; retained gate metadata; output evidence link unavailable.
  • repro: none (no repro gate was declared, so these gates do not prove the issue).
  • CI: pending

Cook run
  • Gate 1: tree 930952db9ed2b6f7d4c3a33e2058d77029641add

Evidence

  • Before the fix (merge only): pass=false, excess 32.5 -> 32.5
  • Local whole-site acceptance gate: {"pass":true,"own":{"before":1,"after":1,"excess":{"before":32.5,"after":27.4}},"blockers_added":[],"visual_regressions":[],"visual_unmeasured":0}
  • New regression test fails before the fix and passes after; 169 nearby PHP unit/contract tests (background, image, figure, selector, pruning, keyframe, definition) and both background-image browser contracts pass
  • Publication identity: ambient_gh

AI disclosure

Tool: Homeboy Cook. Agent: Homeboy (pi). Model: Pi · route roadie/cook-heavy · served claude-opus-5-5. Cook time: 48m23s.

Implementation and reviewer documentation were written by the AI, under the direction of the Cook requester. Gates were run by Homeboy. A human reviews before merge.

Closes #6145

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.

theme css weight: theme_css_weight

1 participant