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

experimentalCSS replace to right to right and break styles #15376

Open
aralroca opened this issue Nov 23, 2024 · 1 comment
Open

experimentalCSS replace to right to right and break styles #15376

aralroca opened this issue Nov 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working css CSS parser, bundler-related

Comments

@aralroca
Copy link
Contributor

aralroca commented Nov 23, 2024

What version of Bun is running?

1.1.37-canary.21+2283ed098

What platform is your computer?

Darwin 23.6.0 arm64 arm

What steps can reproduce the bug?

background-image: linear-gradient(to right, rgb(69 177 228), rgb(4 14 113));

is replaced to:

background-image: linear-gradient(right, #45b1e4, #040e71);

And right is a nonstandard direction, and break the styles.

What is the expected behavior?

Keep the standard direction.

What do you see instead?

No response

Additional information

No response

@aralroca aralroca added bug Something isn't working needs triage labels Nov 23, 2024
@aralroca
Copy link
Contributor Author

aralroca commented Nov 23, 2024

Another one incorrect:

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(240, 240, 255, 1) 26%,
    rgba(149, 237, 255, 1) 100%
  );

It's transformed incorrectly to

 background: linear-gradient(90deg, #fff, 0%, #f0f0ff, 26%, #95edff, 100%) fixed;

Commas are incorrect. Should be:

background: linear-gradient(90deg, #fff 0%, #f0f0ff 26%, #95edff 100%) fixed;

@RiskyMH RiskyMH added css CSS parser, bundler-related and removed needs triage labels Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working css CSS parser, bundler-related
Projects
None yet
Development

No branches or pull requests

3 participants