phpsass icon indicating copy to clipboard operation
phpsass copied to clipboard

@extend-Only Selectors support

Open dmnkhhn opened this issue 13 years ago • 2 comments

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;
}

dmnkhhn avatar Nov 05 '12 11:11 dmnkhhn

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

richthegeek avatar Nov 27 '12 21:11 richthegeek

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?

richthegeek avatar Nov 27 '12 21:11 richthegeek