We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File test.css: .footer__teaser-image_type_i-phone { background: url(a.png); background-image: url(../../../sprites/c.png); background-repeat: no-repeat; background-position: -102px -74px; } .footer__teaser-image_type_logo { background: url(b.png); background-image: url(../../../sprites/c.png); background-repeat: no-repeat; background-position: -2px -146px; }
test.css
Run csso: csso test.css _test.css
csso test.css _test.css
File _test.css: .footer__teaser-image_type_i-phone{background:url(a.png);background-position:-102px -74px} _.footer__teaser-image_type_i-phone,.footer__teaser-image_type_logo{background-image:url(../../../sprites/c.png);background-repeat:no-repeat}_ .footer__teaser-image_type_logo{background:url(b.png);background-position:-2px -146px}
_test.css
I expect that common styles rule will be inserted after original ones but not between.
The text was updated successfully, but these errors were encountered:
👍 running into this exact issue as well.
Sorry, something went wrong.
Declarations are being dropped for me as well:
.brand, .name, .description { margin: 0 auto; padding: 0 20px; max-width: 360px } .brand, .name { margin-top: 0; line-height: 1 } .brand { margin-bottom: 8px; font-weight: 900; font-size: 1.625em; text-transform: uppercase } .name { margin-bottom: 6px; font-weight: 700; font-size: 1.125em }
Becomes:
.brand, .name, .description { padding: 0 20px; max-width: 360px } .brand { line-height: 1 } .name { margin-top: 0; line-height: 1 } .brand { margin: 0 auto 8px; font-weight: 900; font-size: 1.625em; text-transform: uppercase } .name { margin-bottom: 6px; font-weight: 700; font-size: 1.125em }
Notice how the margin: 0 auto declaration has been dropped in the optimized version.
margin: 0 auto
Duplicates #143
No branches or pull requests
File
test.css
:.footer__teaser-image_type_i-phone
{
background: url(a.png);
background-image: url(../../../sprites/c.png);
background-repeat: no-repeat;
background-position: -102px -74px;
}
.footer__teaser-image_type_logo
{
background: url(b.png);
background-image: url(../../../sprites/c.png);
background-repeat: no-repeat;
background-position: -2px -146px;
}
Run csso:
csso test.css _test.css
File
_test.css
:.footer__teaser-image_type_i-phone{background:url(a.png);background-position:-102px -74px}
_.footer__teaser-image_type_i-phone,.footer__teaser-image_type_logo{background-image:url(../../../sprites/c.png);background-repeat:no-repeat}_
.footer__teaser-image_type_logo{background:url(b.png);background-position:-2px -146px}
I expect that common styles rule will be inserted after original ones but not between.
The text was updated successfully, but these errors were encountered: