yui / yuicompressor

YUI Compressor
http://yui.github.com/yuicompressor/
Other
3.01k stars 665 forks source link

css minification calc #254

Open ochsenius opened 8 years ago

ochsenius commented 8 years ago

Hi, I´m having a problem when I make minification with css. I have 2 lines, the first one remove the spaces near the +. With this the Google Chrome does not shows the right position. However, with the symbol - the yuicompressor does not remove the spaces and the Chrome shows the data in the right position

original: top:calc(50% + 20px); => top:calc(50%+20px); // removes the spaces and the display fails. original: left:calc(50% - 25px); => left:calc(50% - 25px); // with spaces it´s ok

jinliming2 commented 8 years ago

Same problem. But when I download the newest source code, and build it myself, it's solved.

AdiPeled commented 8 years ago

can you please add a link to the version you used that fixed the problem?

jinliming2 commented 8 years ago

Can't upload it to github. it told me that they don't support that file type.

I upload it to my dropbox: https://www.dropbox.com/s/j4wvr7921z15bgy/yuicompressor-2.4.8.jar?dl=0

If you live in China, and you can't visit dropbox, you can use baidu cloud: https://pan.baidu.com/s/1hsnvyHQ

I build it myself use ant on 2016/9/11. branch ID: b3de528f45966e418d6e3e2f6f8135db4d0be7f1

melloware commented 2 years ago

Fixed in my fork: https://github.com/primefaces-extensions/resources-optimizer-maven-plugin/issues/75