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

linear-gradient to keyword conversion error #918

Open
yisibl opened this issue Feb 17, 2025 · 0 comments · May be fixed by #936
Open

linear-gradient to keyword conversion error #918

yisibl opened this issue Feb 17, 2025 · 0 comments · May be fixed by #936

Comments

@yisibl
Copy link
Contributor

yisibl commented Feb 17, 2025

input

.foo {
    background: linear-gradient(to right, red, green);
}

output

playground

.foo {
  background: -webkit-linear-gradient(right, red, green); /* The directions of the old and new grammars are not equivalent. */
  background: linear-gradient(to right, red, green);
}

expected

.foo {
  background: -webkit-linear-gradient(left, red, green);
  background: linear-gradient(to right, red, green);
}

https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/linear-gradient#browser_compatibility

Image

lucasweng added a commit to lucasweng/lightningcss that referenced this issue Mar 22, 2025
lucasweng added a commit to lucasweng/lightningcss that referenced this issue Mar 22, 2025
lucasweng added a commit to lucasweng/lightningcss that referenced this issue Mar 22, 2025
@lucasweng lucasweng linked a pull request Mar 22, 2025 that will close this issue
lucasweng added a commit to lucasweng/lightningcss that referenced this issue Mar 22, 2025
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 a pull request may close this issue.

1 participant