* Fixed issue [#257](https://github.com/GoalSmashers/clean-css/issues/257) - turns hsla/rgba to transparent if possible.
* Fixed issue [#265](https://github.com/GoalSmashers/clean-css/issues/265) - adds support for multiple input files.
* Fixed issue [#275](https://github.com/GoalSmashers/clean-css/issues/275) - handling transform properties.
+* Fixed issue [#288](https://github.com/GoalSmashers/clean-css/issues/288) - adds smarter expression parsing.
[2.1.8 / 2014-03-28](https://github.com/GoalSmashers/clean-css/compare/v2.1.7...v2.1.8)
==================
}
}
- if (level === 0 || !next)
+ if (level === 0 && next == ')')
break;
+ if (!next) {
+ end = data.substring(0, end).lastIndexOf('}');
+ break;
+ }
}
return end;
'in comment': "/*! expression(this.runtimeStyle['zoom']) */",
'complex': 'a{width:expression((this.parentNode.innerWidth + this.parentNode.innerHeight) / 2 )}',
'with parentheses': "a{width:expression(this.parentNode.innerText == ')' ? '5px' : '10px' )}",
- 'open ended (broken)': "a{width:expression(this.parentNode.innerText == }"
+ 'open ended (broken)': "a{width:expression(this.parentNode.innerText == }",
+ 'function call & advanced': 'a{zoom:expression(function(el){el.style.zoom="1"}(this))}'
}),
'text content': cssContext({
'normal #1': 'a{content:"."}',