alonso.torres 69835e1187 🐛 Keep every style of a typography a switch carries as an override
Applying a typography to a copy text overrides all six styles it sets,
equal values too, so the typography stays the copy's own. A switch that
carried that text set its overrides from what differs from the new main
only: a family equal to the new main's lost its override while the text
kept the typography, a reference whose styles were split between the
copy and its main, which a later sync could not describe.

When the text a switch carries holds a typography that differs from
the new main's, it overrides all six styles, as applying it does. The
component model predicts the same, and also when the typography came
from a copy level the switched copy refers to.

Benchmark (scripts/bench-components, ms, lower 2.5% quantile):

| world                              | baseline |     now | ratio |
|------------------------------------+----------+---------+-------|
| deepest-edit-through-three-levels  |   35.215 |  20.947 |  0.59 |
| edit-through-a-chain-of-dependents |   68.931 |  40.747 |  0.59 |
| library-update-into-copies         |   83.083 |  47.063 |  0.57 |
| main-edit-among-many-shapes        |    4.837 |   2.363 |  0.49 |
| main-edit-into-10-copies           |    1.790 |   0.964 |  0.54 |
| main-edit-into-100-copies          |   15.415 |   9.223 |  0.60 |
| main-edit-into-1000-copies         |  153.086 |  95.751 |  0.63 |
| variant-switch-into-copies         |   32.052 |  21.325 |  0.67 |

AI-assisted-by: claude-opus-5-5
2026-11-18 10:29:46 +01:00
..
2026-11-10 20:21:16 +01:00
2026-09-29 09:07:34 +02:00
2026-03-11 15:24:40 +01:00