-
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
Wrong color after cleaning, in a very specific case #551
Comments
That's interesting as |
Ok, we will use the |
I have the same issue, some CSS gets hoisted above where it should, breaking my layouting. See: https://www.diffchecker.com/aupxinqt The |
There was a bug in restructuring algorithm which allowed properties to be moved too high up by using multi property moves. This commit changes the behavior to drop a multi-property move on a first occasion, i.e. when one of properties with different value is encountered.
@hostep It's fixed in 3.2.7. |
Awesome, thanks! |
Regression from v3.2.7 where we forgot to check if selectors are special or not. See a fix to #551.
Regression from v3.2.7 where we forgot to check if selectors are special or not. See a fix to #551.
We encountered a strange problem today. I could reduce it to the following input (I came from a > 600 KB css file, so it took me a while to reduce it, but I can't reduce it any further, or the bug disappears).
Input:
Cleaning it with clean-css, using --s0 and no sourcemaps, it gives this output (beautified for readability):
The problem here is with the
color
of thebutton:hover
selector. It should be#1a1a18
, but clean-css turns it into#fff
I tested this both with 3.1.9 and 3.2.5
The text was updated successfully, but these errors were encountered: