-
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
Background position wrongly merged? #304
Comments
It's wrong indeed. Fix is coming! |
Fixed in |
Still happening with 2.2.13. Source:
Result with default options (not OK):
Result with
|
Could you please check with 2.2.16? Works fine for me. |
Same with 2.2.16. Here is the complete code failing:
Result:
|
Got it now. Reopening... |
Same issue here with 2.2.16 this
produces
|
@rafinskipg: disable advanced optimizations until this is fixed. |
Yep, have the same issue. I hope you fix it soon. Thanks. |
3.0 will have an option to disable shorthand compacting too. Hopefully will be able to fix it though. |
* Background positions with more than 2 components were treated incorrectly.
It's fixed in master and 2.2 branch now. Also version |
It seems the latest versions are more aggressive in merging background attributes with multiple values - but the merge is not always correct. Here's an example with background-position:
Source .css:
clean-css 2.1.8 (OK - but background-position is not merged):
clean-css 2.2.3 (NOT OK - background-position is merged in the wrong place):
expected (OK - all background properties are merged correctly):
The text was updated successfully, but these errors were encountered: