Commit 507bc0f
Require originX/originY motion values for scaled layout parents
Remove resolveComputedOrigin getComputedStyle approach. Layout animations
in scaled parents work correctly when originX/originY are set as motion
values (not CSS transformOrigin). Update test to use originX: 0, originY: 0.
Fixes #3356
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6ee0c50 commit 507bc0f
File tree
2 files changed
+8
-43
lines changed- dev/react/src/tests
- packages/motion-dom/src/projection/node
2 files changed
+8
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
Lines changed: 2 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 89 | | |
119 | 90 | | |
120 | 91 | | |
| |||
1133 | 1104 | | |
1134 | 1105 | | |
1135 | 1106 | | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
| 1107 | + | |
1140 | 1108 | | |
1141 | 1109 | | |
1142 | 1110 | | |
1143 | 1111 | | |
1144 | 1112 | | |
1145 | 1113 | | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
| 1114 | + | |
1153 | 1115 | | |
1154 | 1116 | | |
1155 | 1117 | | |
| |||
0 commit comments