Skip to content
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

Fix linear-gradient to keyword conversion #936

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucasweng
Copy link
Contributor

@@ -13282,7 +13282,7 @@ mod tests {
".foo { background: linear-gradient(lch(56.208% 136.76 46.312), lch(51% 135.366 301.364)) }",
indoc! { r#"
.foo {
background: -webkit-linear-gradient(#ff0f0e, #7773ff);
background: -webkit-linear-gradient(top, #ff0f0e, #7773ff);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some test results include an extra top keyword in vendor-prefixed linear-gradient values because the original input omits the direction. When unspecified, the new syntax defaults to to bottom, which is converted to top in legacy syntax.

@lucasweng lucasweng force-pushed the fix-linear-gradient-to-keyword-conversion branch from c0231b9 to 38b1855 Compare March 22, 2025 09:53
@lucasweng lucasweng force-pushed the fix-linear-gradient-to-keyword-conversion branch from 38b1855 to b30f0d3 Compare March 22, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

linear-gradient to keyword conversion error
1 participant