Skip to content

fix(check): skip nowrap overflow for absolute titles in unsized wrappers - #7724

Open
sx4im wants to merge 1 commit into
heygen-com:mainfrom
sx4im:fix-7712-container-overflow-unsized-wrapper
Open

sx4im wants to merge 1 commit into
heygen-com:mainfrom
sx4im:fix-7712-container-overflow-unsized-wrapper

Conversation

@sx4im

@sx4im sx4im commented Nov 14, 2026

Copy link
Copy Markdown

hyperframes check flagged absolutely positioned nowrap titles as overflowing their wrapper, even when the wrapper has no size of its own. The wrapper shrink-to-fit width comes from unrelated in-flow content (the kicker line), so it is not an edge the title can overflow.

What changed: in containerOverflowIssues, a nowrap child that is position: absolute or fixed is skipped when the container does not clip. Clipping containers and data-layout-boundary still check every child, and in-flow nowrap children still warn.

Verified: added two tests in layout-audit.browser.test.ts. The unsized-wrapper case no longer flags (failed before the fix, passes after), and an absolute nowrap child in a clipping container still flags. Full file suite passes, 222/222. oxlint and oxfmt clean.

Fixes #7712

An absolutely positioned nowrap title is sized by its own text, not by
its wrapper, so a shrink-to-fit wrapper (sized by unrelated in-flow
content) is not an edge the title can overflow. Only the non-clipping
branch changes: clipping containers and data-layout-boundary still check
every child, and in-flow nowrap children still warn.

Fixes heygen-com#7712

This branch has not been deployed

No deployments
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.

check: container_overflow "Nowrap text is wider than its container" fires for absolutely positioned titles in an unsized wrapper

1 participant