Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deep @extend specificity problems - continuation #1091

Closed
mgol opened this issue Apr 10, 2015 · 2 comments
Closed

Deep @extend specificity problems - continuation #1091

mgol opened this issue Apr 10, 2015 · 2 comments

Comments

@mgol
Copy link

mgol commented Apr 10, 2015

Refs #592

The following SCSS:

.a {
    top: 0;
}

.b {
    .c {
        @extend .a;
    }
}

.d {
    > .e {
        @extend .a;
        @extend .c;
    }
}

is converted by Ruby Sass 3.4.13 to:

.a, .b .c, .b .d > .e, .d > .e {
  top: 0; }

libsass 3.2.0-beta.5 produces:

.a, .b .c, .d > .e {
  top: 0; }

EDIT: I simplified the test case.

@mgol
Copy link
Author

mgol commented Apr 10, 2015

Possibly related: #823

EDIT: but maybe not related; my test case looks a little different as it extends a class that is wrapped in another selector.

@xzyfer
Copy link
Contributor

xzyfer commented Apr 11, 2015

Spec added sass/sass-spec#322

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants