Skip to content

Extract stylesheet analysis composition from HtmlTransformer - #1437

Merged
chubes4 merged 1 commit into
trunkfrom
refactor-author-stylesheet-projection
Aug 30, 2026
Merged

Extract stylesheet analysis composition from HtmlTransformer#1437
chubes4 merged 1 commit into
trunkfrom
refactor-author-stylesheet-projection

Conversation

@chubes4

@chubes4 chubes4 commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • extract stylesheet payload composition and boundary recovery from HtmlTransformer
  • centralize cached presentation, custom-property, and author-selector analysis in StylesheetAnalysisComposer
  • preserve cache metrics, payload ordering, source provenance, and malformed-stream behavior while removing 277 lines and ten methods from the transformer

Part of #242.

Verification

  • composer validate --strict
  • composer test
  • focused stylesheet contracts: 100 author-selector assertions, 63 engine-support assertions, 22 compile-fragment assertions, 12 responsive-canvas assertions, artifact projection, and 54-page shared-cache equivalence
  • PHP transformer parity: 292 fixtures
  • CSS-attached corpus: 383 documents across 87 fixtures, 82 with CSS, 0 throws
  • exact base/candidate corpus hash: 6f0fd03d6eaa5b9683919e19a0a44eb652f7517373b91c4de3880ac9055ab04f

AI assistance

OpenAI GPT-5.6 Sol via OpenCode was used to inspect the transformer, implement the extraction, and run the verification suite; the resulting diff and evidence were reviewed before publication.

@chubes4
chubes4 merged commit fad76fd into trunk Aug 30, 2026
10 checks passed
@chubes4
chubes4 deleted the refactor-author-stylesheet-projection branch August 30, 2026 16:52
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