Files
hyperframes/packages
Miguel Ángel 6f0b57d608 fix(core): scope sub-composition html/body styles to the composition box (#2089)
Sub-composition <head> styles targeting html/body/:root (width/height/
overflow/background) were injected into the parent document unscoped by both
the Studio runtime mount (compositionLoader) and the render-time inliner
(inlineSubCompositions/htmlBundler). scopeCssToComposition deliberately passed
html/body/:root through unchanged, so a sub-composition smaller than the root
clobbered the host <body> dimensions and its overflow:hidden clipped the
composite to the last sub-comp's size. Only the top-left element painted;
everything else (and framework-owned video positioned outside that box) was
clipped away.

Add a scopeRootSelectors option to scopeCssToComposition that remaps
html/body/:root to the composition's own box, and enable it everywhere
sub-composition styles are scoped. The universal selector stays untouched.
Top-level composition scoping is unchanged (it legitimately owns the document).

Covered by new compositionScoping tests.
2026-07-08 22:21:47 -04:00
..
2026-07-08 16:21:05 -07:00
2026-07-08 16:21:05 -07:00
2026-07-08 16:21:05 -07:00
2026-07-08 16:21:05 -07:00
2026-07-08 16:21:05 -07:00
2026-07-08 16:21:05 -07:00
2026-07-08 16:21:05 -07:00
2026-07-08 16:21:05 -07:00
2026-06-16 13:16:09 -04:00
2026-07-08 16:21:05 -07:00
2026-07-08 16:21:05 -07:00
2026-07-08 16:21:05 -07:00