mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
1a49892d57
Summary: - Color stops needs to follow [fix up spec](https://drafts.csswg.org/css-images-4/#color-stop-fixup) - Adds multiple stops syntax support. e.g. linear-gradient(red 30% 50%, green). - Rename `position` to `positions` in object style API. Optional string array here makes more sense. We'll add number array support once `px` support is added. Will do it as a follow up to this PR. TODOs: transition hint syntax support `linear-gradient(red, 50%, green)` (Done locally, dependent on this PR). `px` support. ## Changelog: [GENERAL] [FIXED] - Linear gradient color stop spec. <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: https://github.com/facebook/react-native/pull/45969 Test Plan: - Added testcases in processBackgroundImage-test.js Reviewed By: javache Differential Revision: D61309203 Pulled By: NickGerleman fbshipit-source-id: 884052c6841320048933361f38e6478ff4192736