+[2.0.1 / 2013-xx-xx](https://github.com/GoalSmashers/clean-css/compare/v2.0.0...HEAD)
+==================
+
+* Fixed issue [#176](https://github.com/GoalSmashers/clean-css/issues/176) - hangs on `undefined` keyword.
+
[2.0.0 / 2013-11-04](https://github.com/GoalSmashers/clean-css/compare/v1.1.7...v2.0.0)
==================
var currentMatch = matchPositions.length - 1;
while (currentMatch >= 0) {
- if (bodies[currentMatch].indexOf(optimizedTokens[k]) > -1) {
+ if (bodies[currentMatch].indexOf(optimizedTokens[k]) > -1 && k > -1) {
k -= 1;
continue;
}
'when complex selector overriden by complex selectors': [
'.one>.two,.three{color:red;line-height:1rem}#zero,.one>.two,.three,.www{color:#fff;margin:0}a{color:red}.one>.two,.three{line-height:2rem;font-size:1.5rem}',
'#zero,.one>.two,.three,.www{color:#fff;margin:0}a{color:red}.one>.two,.three{line-height:2rem;font-size:1.5rem}'
+ ],
+ 'when undefined is used as a value': '.one{text-shadow:undefined}p{color:red}.one{font-size:12px}',
+ 'when undefined is used as a value with reduction': [
+ '.one{text-shadow:undefined}p{color:red}.one{font-size:12px;text-shadow:none}',
+ 'p{color:red}.one{font-size:12px;text-shadow:none}'
]
}),
'same bodies': cssContext({