cssshrink
cssshrink copied to clipboard
Parsing bug
It seems this tool demonstrates more or less the same parsing bug as oldIE (IE 6/7).
It replaces these 2 rules:
body {
background: aliceblue;
}
body,{
background: indianred;
_background: teal;
}
with this one:
body {
background: #f0f8ff;
background: #cd5c5c;
_background: teal;
}
Which makes all modern browsers see the IE7 declaration.
Note that if there is white space between , and { then the rules are properly minified (meaning the rule is not dropped but written as-is.)
This is a test page that shows this parsing bug.