Skip to content

radians rewritten to degrees without converting #19619

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

Open
190n opened this issue May 13, 2025 · 1 comment · May be fixed by #19848
Open

radians rewritten to degrees without converting #19619

190n opened this issue May 13, 2025 · 1 comment · May be fixed by #19848
Labels
bug Something isn't working confirmed bug We can reproduce this issue css CSS parser, bundler-related

Comments

@190n
Copy link
Collaborator

190n commented May 13, 2025

What version of Bun is running?

1.2.13+64ed68c9e

What platform is your computer?

Darwin 24.4.0 arm64 arm

What steps can reproduce the bug?

Create a CSS file containing radians, e.g.:

/* bun.css */
.bun {
    transform: rotate(1rad);
}

Build it: bun build bun.css

What is the expected behavior?

The amount 1rad should be passed through unmodified (or perhaps converted to degrees, but that would be imprecise and result in more characters)

What do you see instead?

1rad is rewritten to 1deg, which is not the same value (a radian is around 57 degrees):

/* bun.css */
.bun {
  transform: rotate(1deg);
}

Additional information

No response

@190n 190n added bug Something isn't working css CSS parser, bundler-related labels May 13, 2025
@RiskyMH RiskyMH added the confirmed bug We can reproduce this issue label May 13, 2025
@39ali 39ali linked a pull request May 22, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed bug We can reproduce this issue css CSS parser, bundler-related
Projects
None yet
3 participants
@190n @RiskyMH and others