calc plus bug

27 views
Skip to first unread message

Pudding dog

unread,
Apr 13, 2017, 4:16:35 AM4/13/17
to SquishIt

I'm using the latest version of squishIt from PMC and have found that using a css calc with a plus turns:

width: calc(66% + 20px);

into: 

width: calc(66%+20px);

(no spaces in between brackets) which is invalid.

Alex Ullrich

unread,
Apr 18, 2017, 12:34:56 PM4/18/17
to SquishIt
This is most likely a minifier bug - assuming you are using the default (AjaxMin) you might want to try using YUI?

In global.asax.cs (or startup if using OWIN) you can execute the following to change the default minifier:

Bundle.ConfigureDefaults().UseYuiForCssMinification();

This will be changing in a future release but should work for now.  There are also .WithMinifier methods you can use to change at the individual bundle level.

Hope this helps

Alex

Reply all
Reply to author
Forward
0 new messages