A nested copy that fills its flex parent while its main is turned gets
its size from the layout. Switching it to a variant without that layout
carried the size as an override, as both mains agree on their size and
its copy chain authors a turn, so it kept the layout's size for good.
A dimension the layout of the copy gave it before the switch is no
override: the copy takes the new variant's.
Test: a-switch-carries-no-size-the-old-layout-gave-a-child.
Switch, swap, sync and golden master tests pass (215); variant programs
pass (seed 9007, 300).
Benchmark (alone):
| :world | :baseline | :now | :mean | :ratio |
|------------------------------------+-----------+--------+---------+--------|
| deepest-edit-through-three-levels | 35.215 | 20.013 | 20.948 | 0.57 |
| edit-through-a-chain-of-dependents | 68.931 | 39.641 | 40.924 | 0.58 |
| library-update-into-copies | 83.083 | 50.865 | 52.074 | 0.61 |
| main-edit-among-many-shapes | 4.837 | 2.536 | 3.259 | 0.52 |
| main-edit-into-10-copies | 1.79 | 1.04 | 1.067 | 0.58 |
| main-edit-into-100-copies | 15.415 | 9.946 | 10.414 | 0.65 |
| main-edit-into-1000-copies | 153.086 | 99.227 | 101.039 | 0.65 |
| variant-switch-into-copies | 32.052 | 21.451 | 24.531 | 0.67 |
AI-assisted-by: claude-opus-5-5