replace(/\} /g, '}') // whitespace after definition
// Get the special comments, content content, and spaces inside calc back
- replace(/calc\((.+)\)([;\}\w])/, function(match) {
+ replace(/calc\([^\}]+\}/g, function(match) {
return match.replace(/\+/g, ' + ');
});
replace(/__CSSCOMMENT__/g, function() { return specialComments.shift(); });
'not strip standalone universal selector': [
'label ~ * + span',
'label~*+span'
+ ],
+ 'not expand + in selectors mixed with calc methods': [
+ 'div{width:calc(50% + 3em)}div + div{width:100%}div:hover{width:calc(50% + 4em)}* > div {border:1px solid #f0f}',
+ 'div{width:calc(50% + 3em)}div+div{width:100%}div:hover{width:calc(50% + 4em)}*>div{border:1px solid #f0f}'
]
}),
'comments': cssContext({