==================
* Fixed issue with tokenizer removing first selector after an unknown @ rule.
+* Fixed issue [#329](https://github.com/GoalSmashers/clean-css/issues/329) - font shorthands incorrectly processed.
[2.2.11 / 2014-07-28](https://github.com/GoalSmashers/clean-css/compare/v2.2.10...v2.2.11)
==================
// replace font weight with numerical value
replace(/(font\-weight|font):(normal|bold)([ ;\}!])(\w*)/g, function(match, property, weight, suffix, next) {
- if (suffix == ' ' && next.length > 0 && !/[.\d]/.test(next))
+ if (suffix == ' ' && (next.indexOf('/') > -1 || next == 'normal' || /[1-9]00/.test(next)))
return match;
if (weight == 'normal')
'p{font-weight:bold!important;width:100%;font:normal 12px Helvetica}',
'p{font-weight:700!important;width:100%;font:400 12px Helvetica}'
],
- 'font weight in extended font declarations': 'font:normal normal normal 13px/20px Helvetica'
+ 'font weight in extended font declarations': 'font:normal normal normal 13px/20px Helvetica',
+ 'font weight where style and weight are declared': 'a{font:normal 300 100%/1.5 sans-serif}'
}),
'unicode': cssContext({
'font-names': 'body{font-family:\\5FAE\\8F6F\\96C5\\9ED1,\\5B8B\\4F53,sans-serif}'