Skip to content
This repository was archived by the owner on Apr 4, 2019. It is now read-only.
This repository was archived by the owner on Apr 4, 2019. It is now read-only.

a nested @import with an @if inside removes the nesting #49

Open
@nex3

Description

@nex3

From sass/sass#2219:

Whenever you nest an @import and have @if in the root of the file it will lose its nesting.

index.scss

.nested {
  @import 'nesting';
}

_nesting.scss

@if true {
  .selector {
      color: #fff
  }
}

results into

.selector {
color: #fff;
}

This works though

& {
@if true {
  .selector {
      color: #fff
  }
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions