richthegeek / phpsass

A compiler for SASS/SCSS written in PHP, brought up to date (approx 3.2) from a fork of PHamlP: http://code.google.com/p/phamlp/
http://phpsass.com/
382 stars 83 forks source link

@supports should behave like @media when used inside a rule #159

Closed gabrielfin closed 10 years ago

gabrielfin commented 10 years ago

This fixes the following issue:

.foo {
    width: 300px;
    @supports (background-blend-mode: multiply) {
        bar: 1;
    }
}

should output

.foo {
    width: 300px;
}
@supports (background-blend-mode: multiply) {
    .foo {
        bar: 1;
    }
}

instead of leaving the input "as is"

.foo {
    width: 300px;
    @supports (background-blend-mode: multiply) {
        bar: 1;
    }
}