mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-15 05:46:40 +00:00
Root cause: when the producer uses innerHTML to strip the inner root,
classes like .scene_1-root are lost. Scoped CSS targeting
[data-composition-id="X"] .scene_1-root has nothing to match.
Fix (two parts):
1. Copy inner root classes to the host element before innerHTML strips it
2. Emit both compound and descendant CSS selectors for inner root classes:
- [scope].scene_1-root { ... } (matches host with class)
- [scope] .scene_1-root { ... } (matches child with class — bundler path)
This preserves CSS layout (no wrapper div that breaks flex/grid) while
making class-based selectors work in both bundler and producer paths.