Skip to content

Not working with complex nesting (@nest) #424

Closed
@smth

Description

@smth

When used in combination with postcss-nesting, custom selectors using @nest do not get properly transpiled.

@custom-selector :--parent
  @nest .parent &;

.child {
  :--parent {
    /* styles */
  }
}

Results in

.child {
  @nest .parent & {
    /* styles */
  }
}

Instead of the expected

.parent .child {
  /* styles */
}

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