Skip to content

Structural optimization bug: wrong place for merged blocks #213

Open
@vindm

Description

@vindm

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions