libsass icon indicating copy to clipboard operation
libsass copied to clipboard

Extending Placeholder selector fails to compile

Open tevko opened this issue 12 years ago • 2 comments

http://codepen.io/tevko/pen/umsrE/

BEFORE THIS ISSUE IS CLOSED

can someone please direct me to where/when this issue is resolved? I've seen it closed everywhere but can't seem to find if it was fixed or what the state of the bug is

tevko avatar Apr 04 '14 02:04 tevko

@tevko your codepen link doesn't seem to work. I think i know what your issue is though and it looks like it's fixed with the latest compiled version of sassc and the latest version of libsass. This gist shows it compiling:

%holder {
color: green;
    &:hover {
        color: red;
    }
}
.class-1 {
    @extend %holder;
}

.class-2 {
    @extend .class-1;
}

outputs

.class-1, .class-2 {
  color: green; }
  .class-1:hover, .class-2:hover {
    color: red; }

hellatan avatar Apr 19 '14 20:04 hellatan

Extend has been broken. We are closing duplicates. It is fixed right now in master and the 3.0RC1. It should be working its way to node-sass or whatever project you are using soon.

HamptonMakes avatar Oct 03 '14 19:10 HamptonMakes