Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Compiling hangs when selectors with ">" are present #3013

@massimo-cassandro

Description

@massimo-cassandro

Compiling scss files hangs in presence of selectors that contain the ">" character. (version 3.6.2)

Example:

this rules hang while compiling:

// 1
.buttons > div {
  //some rules

  > button { 
    //some rules
  }
}

// 2
label {
  > div {
    // some rules

    &:nth-child(1) {
      // some rules
    }
  }
}

All works well if rewritten in this way:

// 1
.buttons > div {
  //some rules
}

.buttons > div > button { 
  //some rules
 }

// 2
label {
  > div {
    // some rules
  }
}
label > div:nth-child(1) {
     // some rules
}

Expected css:

// 1
.buttons > div { ... }
.buttons > div > button { ... }

// 2
label > div { ... }
label > div:nth-child(1) { ... }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions