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

@extend-Only Selectors support #56

Open dmnkhhn opened 11 years ago

dmnkhhn commented 11 years ago

It would be nice to have support for @extend-Only Selectors as explained here: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#placeholders

It has already been added here: https://github.com/richthegeek/phpsass/commit/2e3133a949e6459e5d01beb1810f4d3788e2b1e8

… but the PHPSASS online parser didn't compile as expected.

I tried it with this:

%media {
    overflow: hidden;
    &:first-child {
        float: left;
    }
    &:last-child {
        overflow: hidden;
    }
}

.status {
    @extend %media;
}
richthegeek commented 11 years ago

Confirmed, apparently the tests for this aren't working properly...

richthegeek commented 11 years ago

Hmm, maybe it's a bug in the online compiler, not PHPSass itself.

This is running the latest version (as of this comment) on the sample code: http://phpsass.com/try/phpsass/test.php?name=extend_placeholders2&full=true

Can you verify it results in the expected output?