Setting up your dashboard0 entities found · 9/32 branches scanned
ID:WORK-399Status:ready
Cover guest fill and sandbox fill height mode
cover.css stretches only img/video to fill the media well; any other guest — a sandbox above all — sits at its own height. CSS alone can't fix the sandbox case: the custom element (packages/behaviors/src/elements/sandbox.ts) sets an inline iframe height (fixed px, or live auto-resize via rf-sandbox-resize postMessage when data-height="auto"), which fights a host-owned height. This item makes any guest fill a cover well, with sandbox height="fill" as the mechanism for the live case (SPEC-101 §4). Benefits every cover host (card, bento-cell, hero alike).
Cover-scoped fill CSS: in [data-media-position="cover"] [data-section="media"], non-img/video direct guests (and the sandbox iframe) get height: 100%; global sandbox CSS unchanged.
sandbox gains height="fill" (data-height="fill"): the element sets the iframe to height: 100% and registers no auto-resize listener; documented attribute grammar alongside the existing number/auto.
The identity transform sets fill automatically when a sandbox is the direct guest of a cover media zone, so the composition needs zero sandbox-side config; an explicit author height is not overridden.
The poster (activation non-eager) also fills under cover rather than its min-height: 150px box — visual consistency even though non-eager-under-cover warns (WORK-400).
Unit tests: schema (fill accepted), element behaviour (no resize listener in fill mode), transform auto-fill under a cover host; contracts/CSS coverage green.
Approach
CSS in packages/lumina/styles/dimensions/cover.css (generic guest fill) + packages/lumina/styles/runes/sandbox.css if needed for the iframe.
Element: fill branch beside the auto branch in packages/behaviors/src/elements/sandbox.ts (buildIframe, renderPoster).
Schema: height attribute accepts fill in packages/runes/src/tags/sandbox.ts (type widens from Number; keep numeric behaviour identical).
Auto-fill: in the engine's cover handling (packages/transform/src/engine.ts §6d already locates the cover media zone for posture demotion — set data-height="fill" on an rf-sandbox guest there when its height is auto).
References
SPEC-101 §4 · SPEC-089 · sandbox element mechanics: packages/behaviors/src/elements/sandbox.ts