mwrock / RequestReduce

Instantly makes your .net website faster by reducing the number and size of requests with almost no effort.
www.requestreduce.org
Apache License 2.0
228 stars 49 forks source link

RequestReduce messes up the calc() CSS function #258

Open russiarulez opened 10 years ago

russiarulez commented 10 years ago

In my CSS I'm using the calc() function - for example "height: calc(100% - 30px);". I noticed that some parts of our website are messed up, and after turning off RequestReduce the layout becomes normal. After a brief investigation I found that everywhere the calc() function is used, a space after the '%' is removed, so the above example becomes "height: calc(100%- 30px);" (note that there's no space following the '%' sign), and this breaks the function, as you must have the spaces surrounding the operator.

http://www.w3.org/TR/css3-values/#calc

brondavies commented 10 years ago

I am seeing this too.

brondavies commented 10 years ago

This looks like a bug in an old build of the AjaxMin library. Get the latest RR code and update the AjaxMin nuget package and it will work.

Groom commented 5 years ago

I still have this problem here in 2019. I don't have AjaxMin in my project, and installing it didn't help. I've also tried reinstalling RR, but that didn't help either. Does anybody have any suggestions to how I might fix this?