Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

& doesn't work properly when pseudo class wrapped by @at-root. #2158

Closed
kryvonos-v opened this issue Nov 20, 2017 · 2 comments
Closed

& doesn't work properly when pseudo class wrapped by @at-root. #2158

kryvonos-v opened this issue Nov 20, 2017 · 2 comments

Comments

@kryvonos-v
Copy link

kryvonos-v commented Nov 20, 2017

I've got the following code:

.tooltip {
  &__arrow {
    @at-root .tooltip--arrow-down .tooltip__arrow {
      &:before {
        @debug #{&};
      }
    }
  }
}

Expected that the code about will output to console:
.tooltip--arrow-down .tooltip__arrow:before
But I get:
.tooltip--arrow-down .tooltip__arrow .tooltip--arrow-down .tooltip__arrow:before.

I've tried to compile that code with Ruby Sass and everything works as expected. I guess that the bug comes from LibSass, but I don't really sure about it.

  • node-sass 4.7.1
@nschonni
Copy link
Contributor

Yes, as mentioned in the issue template, compilation issues should be filed upstream. If you open an issue there you can link it back here.

@xzyfer
Copy link
Contributor

xzyfer commented Mar 10, 2018

Fixed in 4.8.0

@xzyfer xzyfer closed this as completed Mar 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants