A copy text that overrides its size, and switches to a variant whose
text applies a typography, keeps its size when both variants show the
same one; the typography, whose size is not the copy's, is dropped. The
switch then authored the missing reference as a typography override the
copy never made. txt/drops-typography? tells when a copy's text
overrides hold a unit a typography sets but not the typography; the
switch then leaves out the typography group, and the update-main push
uses the same helper.
Tests: copy-that-resizes-its-text-holds-no-typography-of-the-new-variant
and the regression program
switching-a-resized-copy-text-to-a-typography-variant-holds-no-typography.
Full common suite: 2351 tests, 0 failures.
Benchmark (scripts/bench-components, ms, lower 2.5% quantile):
| :world | :baseline | :now | :mean | :ratio |
|------------------------------------+-----------+--------+--------+--------|
| deepest-edit-through-three-levels | 35.215 | 21.282 | 21.706 | 0.6 |
| edit-through-a-chain-of-dependents | 68.931 | 41.59 | 43.639 | 0.6 |
| library-update-into-copies | 83.083 | 46.407 | 49.512 | 0.56 |
| main-edit-among-many-shapes | 4.837 | 2.075 | 2.227 | 0.43 |
| main-edit-into-10-copies | 1.79 | 0.96 | 1.042 | 0.54 |
| main-edit-into-100-copies | 15.415 | 9.576 | 10.099 | 0.62 |
| main-edit-into-1000-copies | 153.086 | 94.283 | 98.829 | 0.62 |
| variant-switch-into-copies | 32.052 | 22.495 | 22.945 | 0.7 |
AI-assisted-by: claude-opus-5-5