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

[Bug]: unexpected css transform for color #7747

Closed
fz6m opened this issue Aug 31, 2024 · 2 comments
Closed

[Bug]: unexpected css transform for color #7747

fz6m opened this issue Aug 31, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@fz6m
Copy link

fz6m commented Aug 31, 2024

System Info

System:
    OS: macOS 14.2.1
    CPU: (8) arm64 Apple M3
    Memory: 114.19 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.19.0 - ~/Library/Caches/fnm_multishells/26058_1725135681510/bin/node
    Yarn: 1.22.22 - ~/Library/Caches/fnm_multishells/26058_1725135681510/bin/yarn
    npm: 10.2.3 - ~/Library/Caches/fnm_multishells/26058_1725135681510/bin/npm
    pnpm: 9.7.1 - ~/Library/Caches/fnm_multishells/26058_1725135681510/bin/pnpm
    bun: 1.1.5 - ~/.bun/bin/bun
    Watchman: 2024.07.08.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 128.0.6613.114
    Safari: 17.2.1

Details

rspack and webpack handle css differently.

see minimal reproduction.

Reproduce link

No response

Reproduce Steps

See readme

@fz6m fz6m added bug Something isn't working pending triage The issue/PR is currently untouched. labels Aug 31, 2024
@jerrykingxyz
Copy link
Contributor

It seems be transformed by lightningcss when minimize css. You can try it in playground

If you want to avoid this behavior, you can set the target in LightningCssMinimizerRspackPlugin.
https://rspack.dev/plugins/rspack/lightning-css-minimizer-rspack-plugin#minimizeroptions

@jerrykingxyz jerrykingxyz removed the pending triage The issue/PR is currently untouched. label Sep 4, 2024
@jerrykingxyz jerrykingxyz self-assigned this Sep 4, 2024
@fz6m
Copy link
Author

fz6m commented Sep 15, 2024

fixed in #7811

@fz6m fz6m closed this as completed Sep 15, 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
Projects
None yet
Development

No branches or pull requests

2 participants