Files
hyperframes/packages
Miguel Angel Simon Sierra 0634d6780a fix(core): preserve root box styling on flattened sub-composition wrappers
Compositions that style their own box via the bare `[data-composition-id="X"]`
selector (e.g. `display: flex` to center their children) rely on that rule
landing on whatever element actually parents their content. Once
flattenInnerRoot preserves the authored root as a wrapper below the host
(data-hf-inner-root), the bare root selector was only ever rewritten onto the
host, one level too high, so the composition's own children lost their flex
or grid layout context entirely.

Rewrite a bare root composition-id selector to a compound-OR targeting both
the host and its data-hf-inner-root descendant, so the box styling reaches
whichever element actually holds the composition's content. Selectors with a
descendant part (e.g. `[data-composition-id="X"] .title`) are unaffected,
since a plain descendant combinator already matches at any depth.
2026-07-01 20:40:32 -07:00
..
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-06-16 13:16:09 -04:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00
2026-07-01 14:57:39 -07:00