Skip to content

Collapse leftover fractional tracks on auto-height grids - #1400

Merged
chubes4 merged 2 commits into
trunkfrom
fix/1387-empty-footer-geometry
Aug 30, 2026
Merged

Collapse leftover fractional tracks on auto-height grids#1400
chubes4 merged 2 commits into
trunkfrom
fix/1387-empty-footer-geometry

Conversation

@chubes4

@chubes4 chubes4 commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Auto-height captured grids still author 1fr row tracks. After WordPress projection those tracks absorb leftover height from a stretched parent, or from a hidden complementary responsive variant that leaves an explicit track empty, opening a blank region between content rows.
  • Rewrite those tracks to min-content when every matched source box has no definite height floor (height:auto / min-height:0 / display:none). Definite floors such as min-height:100vh keep their fractional tracks. Column tracks are unchanged.
  • Both complementary responsive footer variants remain in the tree until Extract nested responsive shell variants as shared template parts #1367 can extract them as one shared template part.

Closes #1387.

Independent of the semantic ownership work in #868 and nested shell extraction in #1367.

Verification

  • php tests/unit/responsive-footer-geometry.php
  • php tests/unit/responsive-canvas-geometry.php
  • php tests/unit/auto-fit-grid-carrier.php
  • php tests/unit/responsive-document-variants.php
  • composer --working-dir=php-transformer test (canonical contracts, unit suite, 289 parity fixtures, packaging)

AI Assistance

OpenAI gpt-5.6-sol via OpenCode general coding subagent identified the retained empty footer geometry as leftover 1fr row tracks on auto-height grids and hidden complementary responsive variants, implemented the author-stylesheet collapse, added the generic unit fixture, and ran the PHP transformer suite.

Auto-height captured grids still author 1fr row tracks. After WordPress
projection those tracks absorb leftover height from a stretched parent or
a hidden complementary responsive variant, opening empty space between
content rows. Rewrite those tracks to min-content when the matched source
box has no definite height floor.
@chubes4
chubes4 merged commit af8aef7 into trunk Aug 30, 2026
10 checks passed
@chubes4
chubes4 deleted the fix/1387-empty-footer-geometry branch August 30, 2026 15:58
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.

Collapse empty responsive footer geometry in generated WordPress output

1 participant