yui / yuicompressor

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

Incorect default value for background-position #298

Open jmwebservices opened 6 years ago

jmwebservices commented 6 years ago

According to the spec, the default value for the 1-value syntax of background-position is 50% when the specified value is a length or percentage. However, the compressor forces a value of zero.

Test case

test{
background-position: 0px;
}

Expected result

test{background-position:0}

Actual result

test{background-position:0 0}