Skip to content

New single color stop gradients feature #2776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2025
Merged

New single color stop gradients feature #2776

merged 2 commits into from
Mar 20, 2025

Conversation

captainbrosset
Copy link
Contributor

See mdn/browser-compat-data#26062. Gradient functions can now take a single color stop. Available in Firefox 136, and coming in other browsers.

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Mar 15, 2025
Copy link

@lolaodelola lolaodelola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

@captainbrosset captainbrosset requested a review from jamesnw March 20, 2025 14:47
@captainbrosset
Copy link
Contributor Author

Thanks so much @lolaodelola. I'll need a peer or owner to approve this before this can be merged.

Copy link
Collaborator

@jamesnw jamesnw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! I opened mdn/browser-compat-data#26264 to add the keys for the repeating gradients.

@jamesnw jamesnw merged commit 6bd6e95 into main Mar 20, 2025
3 checks passed
@jamesnw jamesnw deleted the single-color-stop branch March 20, 2025 16:04
@foolip
Copy link
Collaborator

foolip commented Jun 11, 2025

I came across this feature when browsing new features on webstatus.dev, and it strikes me as too small a behavior to warrant its own feature. I would have made this part of the existing gradients and conic-gradients features, and I suggested that we split it when we have support for it in #3000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants