Skip to content

fix(php-transformer): collect direct inline styles - #1626

Merged
chubes4 merged 3 commits into
trunkfrom
fix/1623-inline-style-inputs
Sep 9, 2026
Merged

fix(php-transformer): collect direct inline styles#1626
chubes4 merged 3 commits into
trunkfrom
fix/1623-inline-style-inputs

Conversation

@chubes4

@chubes4 chubes4 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #1623.

Collect direct HTML inline styles through the existing author-stylesheet pipeline rather than converting already-collected CSS nodes into unsupported blocks. Preserve occurrence order, media, and type metadata. Keep media constraints in presentation analysis as well as emitted assets, and avoid re-adding inline styles when artifact compilation supplied the ordered stylesheet list.

Verification

From php-transformer/:

  • composer test:canonical: passed.
  • composer test:parity: 303 fixtures passed.
  • composer test:packaging: passed.
  • php tests/unit/artifact-author-stylesheet-projection.php: passed, including mixed inline/external order and print-only layout negative coverage.
  • composer validate --strict: passed.

Real Studio URL import using Studio draft #3952 at 0920bd364, SSI cda5b2d3, and this candidate a854528b7 completed all six routes of the public Potted Plant Design source with zero fallbacks, compared with 114 on the original producer. Build the paired SSI development ZIP against this branch, then use Studio's create --from https://www.pottedplantdesign.com/ --static-site-importer-path <paired-zip> to reproduce.

This is a scoped conversion repair, not a claim of full site parity. The follow-up existing-runtime review still reports desktop/mobile layout differences despite valid blocks. The standalone WordPress integration suite was unavailable because WP_TESTS_DIR was not configured; the Studio import supplied the real materialization check.

AI Assistance

GPT-5.6 Terra via OpenCode implemented and self-reviewed the repair, added regressions, and ran producer gates. GPT-6 Astra via OpenCode reviewed the candidate, requested media/order corrections, and ran the paired Studio URL import and existing-runtime review. Chris directed the work and authorized direct execution while the orchestration control plane was blocked.

@chubes4
chubes4 merged commit 35c1074 into trunk Sep 9, 2026
10 checks passed
@chubes4
chubes4 deleted the fix/1623-inline-style-inputs branch September 9, 2026 16:51
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.

Restore inline style collection for direct HTML transforms

1 participant