Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
This repository was 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

@kryvonos-v

Description

@kryvonos-v

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions