-
Notifications
You must be signed in to change notification settings - Fork 322
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
Optimizing properties of level 2 removes hsla values #1156
Comments
I also get the same result in the playground with 2 level rules completely disabled. |
So, after a little research, I figured out that this is due to the "optimizing properties", because if I specify the @jakubpawlowicz could you please suggest what kind of optimization of properties are carried out, in addition to the existing rules? In my opinion, it is strange that as a result of this, valid values are completely removed. |
Hey @lex111 - it looks like validator thinks it's an invalid CSS color value, but this is not true. Let me check why. Since level 2 optimizations also check if certain values are valid CSS so in addition to those level 2 optimizations a certain property can be dropped if it's invalid. You are right, we should surface it somewhere. Maybe as warnings? |
@jakubpawlowicz that would be great, but why is the hsla value determined as invalid in this case, it is strange. Would it take a long time to fix this? |
Let me take a look later today. |
And btw sorry for this causing you trouble! |
It's fixed in 5.1.1. |
@jakubpawlowicz wow how quickly, many thanks! |
Cheers! |
For some unknown reason, when using 2 level, color values specified in hsla format are removed.
Environment
npm ls clean-css
: 5.1.0node -v
: 12.13.0Configuration options
Input CSS
Actual output CSS
Expected output CSS
The text was updated successfully, but these errors were encountered: