Skip to content

Fix image overflow: anchor page-start tops, scale fixed-height blocks, and remove inline img baseline gap#195

Merged
mettta merged 4 commits intomainfrom
media
Jan 20, 2026
Merged

Fix image overflow: anchor page-start tops, scale fixed-height blocks, and remove inline img baseline gap#195
mettta merged 4 commits intomainfrom
media

Conversation

@mettta
Copy link
Copy Markdown
Owner

@mettta mettta commented Jan 20, 2026

  • Anchor page starts to the first real child (or replaced element) for inline/contents wrappers so pageTop matches the visual top of media groups.
  • When scaling fixed-height elements, wrap them to preserve layout height and prevent overflow/phantom space.
  • Track/log pageTopAnchor for debugging page-start placement decisions.
  • Align page-end inline images to top to eliminate the baseline gap that can trigger overflow.

@mettta mettta merged commit c77f30c into main Jan 20, 2026
5 checks passed
@mettta mettta deleted the media branch January 20, 2026 22:33
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