Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Second selector omitted when using & + & #1441

Closed
mahtd opened this issue Aug 12, 2015 · 5 comments
Closed

Second selector omitted when using & + & #1441

mahtd opened this issue Aug 12, 2015 · 5 comments

Comments

@mahtd
Copy link

mahtd commented Aug 12, 2015

Looks like a regression in master

Input:

.foo {
    & + & {
        foo: bar;
    }
}

Ruby Sass output:

$ sass --version
Sass 3.4.16 (Selective Steve)
$ sass parent-sibling-parent.scss
.foo + .foo {
  foo: bar; }

libsass 3.2.5 output

$ sassc --version
sassc: 3.2.1
libsass: 3.2.5
sass2scss: 1.0.3
$ sassc parent-sibling-parent.scss
.foo + .foo {
  foo: bar; }

libsass master output

$ sassc --version
sassc: 3.2.5-14-g5c78
libsass: 3.2.5-172-g1ebed
sass2scss: 1.0.3
$ sassc parent-sibling-parent.scss
.foo + {
  foo: bar; }
@saper
Copy link
Member

saper commented Aug 12, 2015

Probably broken with 3af051e

@mahtd
Copy link
Author

mahtd commented Aug 12, 2015

Yeah, I can confirm that

libsass @ 3af051e~1 (4767390)

$ sassc parent-sibling-parent.scss
.foo + .foo {
  foo: bar; }

libsass @ 3af051e

$ sassc parent-sibling-parent.scss
.foo + {
  foo: bar; }

@xzyfer
Copy link
Contributor

xzyfer commented Aug 13, 2015

Thanks for the investigation @saper and @mahtd

@xzyfer
Copy link
Contributor

xzyfer commented Aug 14, 2015

Spec added sass/sass-spec#471

@xzyfer
Copy link
Contributor

xzyfer commented Aug 24, 2015

Fixed in #1465

@xzyfer xzyfer closed this as completed Aug 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants