Repository navigation
Commit 4f7a94d
Resolve radial gradient length color stops against the horizontal radius
## Summary:
Fixes #59968.
Radial gradient length color stops were resolved against the larger radius. Per [spec](https://drafts.csswg.org/css-images-3/#radial-color-stops), the gradient line "extends toward the right", so they should resolve against the horizontal radius.
## Changelog:
[GENERAL] [FIXED] - Resolve radial gradient length color stops against the horizontal radius
## Test Plan:
Added an RNTester example. Compared with Chrome:

Differential Revision: D133460463
Pull Request resolved: #60173
(cherry picked from commit 9049482)1 parent f99a4c7 commit 4f7a94d
3 files changed
Lines changed: 25 additions & 3 deletions
File tree
- packages
- react-native
- ReactAndroid/src/main/java/com/facebook/react/uimanager/style
- React/Fabric/Utils
- rn-tester/js/examples/RadialGradient
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
289 | 308 | | |
290 | 309 | | |
291 | 310 | | |
| |||
0 commit comments