yui / yuicompressor

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

Invalid transition and keyframes fix #312

Closed Tofandel closed 5 years ago

Tofandel commented 6 years ago

We don't replace 0s and 0ms anymore the transitions will be considered invalid if for example the delay doesn't have an unit We don't replace 0% on the start of the line as it is needed to be a valid keyframe We replace the '100%' keyframe step for a 'to' which is 2 char shorter

akshayraje commented 5 years ago

Someone merge this please. This is a long standing bug which is patched thanks to @Tofandel

Josh979 commented 5 years ago

This is a huge bug... please merge!

melloware commented 2 years ago

I think the regex needs to be...

p = Pattern.compile("(?i)(^|,|\\{) ?(?:100% ?\\{)");