sstephenson / ruby-yui-compressor

A Ruby interface to YUI Compressor for minifying JavaScript and CSS assets.
217 stars 57 forks source link

truncates % in CSS #34

Closed ghost closed 10 years ago

ghost commented 11 years ago

1.9.3p392 :027 > compressor.compress(<<-END_CSS) 1.9.3p392 :028"> .test{width: 20%; } 1.9.3p392 :029"> .test2{width: 20.0%} 1.9.3p392 :030"> END_CSS => ".test{width:20%}.test2{width:20.0}"

stevecrozz commented 10 years ago

It looks like this is a bug in yuicompressor:

echo '.test{width: 20.0%;}' | java -jar lib/yuicompressor-2.4.8.jar --type css
.test{width:20.0}

I've opened a ticket for you upstream: https://github.com/yui/yuicompressor/issues/132.