cssshrink icon indicating copy to clipboard operation
cssshrink copied to clipboard

Parsing bug

Open thierryk opened this issue 11 years ago • 0 comments

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.

thierryk avatar Jun 28 '14 22:06 thierryk