You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Propose rewriting gradients plugin from an order based find/replace to something that first builds a data model and then stringifies this to a syntax that most browsers understand.
Source CSS
.at-keyword {
background-image:radial-gradient(farthest-corner at 40px40px,#f350%,#43e100%);
}
Expected CSS
need to check if there is a valid alternative
Actual CSS
.at-keyword {
background-image:radial-gradient(farthest-corner at 40px,at 40px,#f350%,#43e100%);
}
Does it happen with npx <plugin-name> minimal-example.css?
Bug description
Currently gradient functions with extra keywords lead to incorrect output as they are mistaken for color values.
see : csstools/postcss-preset-env#120
https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/radial-gradient()
https://drafts.csswg.org/css-images/#radial-gradients
Propose rewriting gradients plugin from an order based find/replace to something that first builds a data model and then stringifies this to a syntax that most browsers understand.
Source CSS
Expected CSS
need to check if there is a valid alternative
Actual CSS
Does it happen with
npx <plugin-name> minimal-example.css
?Yes
Extra config
No response
What plugin are you experiencing this issue on?
PostCSS Double Position Gradients
Plugin version
7.1.0
What OS are you experiencing this on?
macOS
Node Version
16
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: