Skip to content

Problems with @at-root #706

@shahroq

Description

@shahroq

Working with this project, which extensively uses @at-root, I found some differences between the result of scssphp and SCSS compiler. This is one use-case:

.container {
  @at-root body#{&} {
     #logo { 
      border: 1px solid red;
    }
  }
}

The expected result, as shown here

body.container #logo {
    border: 1px solid red;
}

The scssphp result:

bodybody.container #logo {
  border: 1px solid red;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingspec complianceIssues with compliance to the Sass spec

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions