A copy can set the margin of a nested copy in a flex, and a switch can
carry that override under a parent that is no layout. Update-main moved
the touched layout item group to the main, but not its value: only a
layout parent pushes the layout child attributes of its children. The
main took the override without the copy's margin. Update-main now pushes
the layout child attributes the copy authored when the main's parent is
no layout, except at the copy root.
Test: updating-a-main-pushes-a-margin-a-switch-carried-out-of-a-layout
(the variant gate program of round 14, seed 371855618).
Common suite: 2436 tests, 0 failures.
Benchmark (scripts/bench-components, ms, lower 2.5% quantile):
| :world | :baseline | :now | :mean | :ratio |
|------------------------------------+-----------+---------+---------+--------|
| deepest-edit-through-three-levels | 35.215 | 24.588 | 26.788 | 0.7 |
| edit-through-a-chain-of-dependents | 68.931 | 45.07 | 48.822 | 0.65 |
| library-update-into-copies | 83.083 | 53.351 | 60.769 | 0.64 |
| main-edit-among-many-shapes | 4.837 | 2.871 | 3.13 | 0.59 |
| main-edit-into-10-copies | 1.79 | 1.153 | 1.216 | 0.64 |
| main-edit-into-100-copies | 15.415 | 10.844 | 11.122 | 0.7 |
| main-edit-into-1000-copies | 153.086 | 108.081 | 112.553 | 0.71 |
| variant-switch-into-copies | 32.052 | 23.078 | 29.003 | 0.72 |
AI-assisted-by: claude-opus-5-5