-
Notifications
You must be signed in to change notification settings - Fork 189
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
Regression: color-mix()-ing with <system-color>s panics #685
Comments
13 tasks
toastal
added a commit
to toastal/nixpkgs
that referenced
this issue
May 18, 2024
<system-color> panic regression still persists parcel-bundler/lightningcss#685 patch unmerged for napi & cargo auditable parcel-bundler/lightningcss#713
13 tasks
Running into this issue as well. This fails on the PDF.js library: .textLayer ::-moz-selection{
background:rgba(0 0 255 / 0.25);
background:color-mix(in srgb, AccentColor, transparent 75%);
} |
1 task
I encountered the same issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Browsers seem to handle types for color-mix() just fine. The latest version (1.24) of Lightning CSS however now fails parse this situation--previous versions were all fine. I happen to have a some older browsers set to be supported by my output too. I think it’s trying to interpolate & produce the output color as a fallback which it can never do for system colors. I would prefer it be left alone as a progressive enhancement in my case.
With
RUST_BACKTRACE=full
It can also be seen failing on the Playground: https://lightningcss.dev/playground/index.html#{"minify"%3Atrue%2C"customMedia"%3Atrue%2C"cssModules"%3Afalse%2C"analyzeDependencies"%3Afalse%2C"targets"%3A{"chrome"%3A6225920}%2C"include"%3A0%2C"exclude"%3A0%2C"source"%3A".foo {\n\tbackground%3A color-mix(in lab%2C Canvas 75%25%2C CanvasText 25%25)%3B\n}"%2C"visitorEnabled"%3Afalse%2C"visitor"%3A"{\n%20 Color(color) {\n%20%20%20 if (color.type %3D%3D%3D 'rgb') {\n%20%20%20%20%20 color.g %3D 0%3B\n%20%20%20%20%20 return color%3B\n%20%20%20 }\n%20 }\n}"%2C"unusedSymbols"%3A[]%2C"version"%3A"local"}
Also, is there a mirror/outlet outside of proprietary Microsoft GitHub to discuss the project?
The text was updated successfully, but these errors were encountered: