mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-14 13:27:13 +00:00
When a sub-composition is a full HTML document (not wrapped in <template>), the composition loader only extracted <style> and <script> elements from within the [data-composition-id] root element. Any CSS in <head> (backgrounds, positioning, fonts) or scripts in <head> (GSAP CDN) were silently dropped. This caused the iris-wipe eval (prompt 25, scored 1.0/5) to render entirely black — the scene background colors and absolute positioning were defined in <head><style> and never loaded. Now extracts <head> styles and scripts from non-template sub-comp documents and injects them before the content-level assets. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>