mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-17 15:24:19 +00:00
The previous fix rewrote a bare root [data-composition-id] box selector to match both the host and the flattened wrapper. That double-applies any additive property (padding, margin, a non-zero transform): the wrapper is nested inside the host, so a rule like `padding-top: 200px` shifted content down twice instead of once, visible as overlapping elements in compositions that combine flex alignment with an offset (e.g. a captions overlay using `align-items: flex-start; padding-top: 200px`). Use :has()/:not() to target exactly one match: the wrapper when it exists (the flattened case), or the host when it doesn't (the documented non-flattened fallback for callers that omit flattenInnerRoot).