vaadin / sass-compiler

A Java Sass compiler implementation
53 stars 26 forks source link

Sass compiler ignores parent selector if not followed by certain chars. #291

Open vaadin-bot opened 9 years ago

vaadin-bot commented 9 years ago

Originally by szebelledimark


According to Sass reference, the following code:

.v-button {
    ...

    &:after {
        ...
    }

    &-icon-only {
        ...
    }
}

should compiled into:

.v-button {
    ...
}
.v-button:after {
    ...
}   
.v-button-icon-only {
    ...
}

instead it complies to:

.v-button {
    ...
}
.v-button:after {
    ...
}

It ignores the block if the parent selector is not followed by ":", " ", ">".


Imported from https://dev.vaadin.com/ issue #17053