Repository navigation
Resolve radial gradient length color stops against the horizontal radius - #60173
Open
intergalacticspacehighway wants to merge 1 commit into
Open
intergalacticspacehighway wants to merge 1 commit into
intergalacticspacehighway wants to merge 1 commit into
Conversation
Length color stops in an elliptical radial gradient were resolved against max(radiusX, radiusY), while the ellipse is drawn with radiusX as its horizontal radius. On an ellipse taller than wide, every length stop landed closer to the center than in browsers. CSS Images 3 places radial color stops on a gradient line that starts at the center and "extends toward the right", so length stops resolve against radiusX: https://drafts.csswg.org/css-images-3/#radial-color-stops Fixes react#59968.
intergalacticspacehighway
marked this pull request as ready for review
November 20, 2026 04:35
javache
approved these changes
Nov 20, 2026
|
@javache has imported this pull request. If you are a Meta employee, you can view this in D133460463. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary:
Fixes #59968.
Radial gradient length color stops were resolved against the larger radius. Per spec, 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: