Skip to content

Bug: Minimal Tailwind Skin Root Collapses to 0×0 in a Flex Parent #1539

@spuppo-mux

Description

@spuppo-mux

Is there an existing issue for this?

  • I have searched the existing issues

Which package(s) or projects are affected?

React Example

Browser/OS/Node environment

Browser: Safari
OS: macOS
Node version: recommended
npm version: recommended

Description

The minimal Tailwind skin root (packages/skins/src/minimal/tailwind/components/root.ts) renders as a 0×0 element when its parent is a flex container without align-items: stretch, even when the player is sized via aspect-ratio and max-width on the root.

Root cause: @container/media-root compiles to container-type: inline-size, which applies inline-size containment — the element's inline size can no longer be derived from its descendants. The minimal Tailwind root is display: block with no width declaration, so in a flex row parent with items-center (cross-axis = block axis, no stretch), it has no inline size to inherit and no descendants that can provide one. Width collapses to 0, aspect-ratio: 16/9 then produces 0 height, and the player is invisible.

The default Tailwind root had the same problem and was fixed in #881 ("fix(html): fix html container sizing") by adding h-full w-full. The minimal Tailwind root was missed and still has only block relative isolate @container/media-root. Suggested fix: add h-full w-full to the minimal root to match.

Affects all React + Tailwind + minimal-skin templates. CSS styling and HTML platform are unaffected.

Reduced test case

No response

Steps to reproduce

Reproduction: sandbox react-simple-hls-video template with ?skin=minimal&styling=tailwind. The template applies aspect-video max-w-4xl mx-auto to the skin and renders it inside <div class="flex justify-center items-center min-h-screen">. Nothing renders. Removing @container/media-root from the root element in devtools restores the player.

Current Behavior

Player renders as a 0×0

Expected Behavior

Player renders correctly

Errors

No response

What version of the package are you using?

latest

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions