You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
canvas {
-ms-interpolation-mode: nearest-neighbor; /* IE */image-rendering: -webkit-optimize-contrast; /* Old Android, Safari, UC Browser */image-rendering: -moz-crisp-edges; /* Firefox */image-rendering: crisp-edges; /* Safari */-ms-interpolation-mode: nearest-neighbor; /* Note: this is a duplicate! This triggers the bug */image-rendering: pixelated; /* Chrome & Opera */
}
Note that -ms-interpolation-mode property appears twice (this is code generated by Autoprefixer — don’t ask). In this case, it seems that everything in between the two duplicate properties is removed while minifying!
I’ve managed to narrow down the problem some more. It has to do with properties getting several different values (as happens frequently with vendor-prefixed values). Everything works fine if all the properties follow one another directly:
Currently clean-css expects same properties to be declared in a successive order (which is a good practice anyway), however there's an outstanding bug opened to make it more flexible: #290.
You can use --skip-aggressive-merging in the meantime.
Closing this bug as a duplicate.
The following CSS is incorrectly minified:
Note that
-ms-interpolation-mode
property appears twice (this is code generated by Autoprefixer — don’t ask). In this case, it seems that everything in between the two duplicate properties is removed while minifying!Actual minified output:
Expected minified output:
Simple test case to reproduce the issue:
The text was updated successfully, but these errors were encountered: