mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 11:26:02 +00:00
Colouring a word in the shipped playground saved correctly and rendered white, because that composition sets `-webkit-text-fill-color` on the text element. That property inherits and paints the glyph fill, so it wins over any `color` a run below it sets. The composition is not doing anything wrong; from the editor it reads as the colour picker being broken. The run now says its colour twice when, and only when, something else would paint over it: the rendered span is asked whether its fill differs from its own computed colour, and only then is the fill written alongside. Both sides come from the same computed style, so neither colour notation nor inheritance has to be untangled by hand, and a composition that does not do this keeps the markup it had.