Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.
This repository was archived by the owner on Dec 28, 2021. It is now read-only.

Concatenative selectors #17

Closed
Closed
@keithamus

Description

@keithamus

Hi @jonathantneal, thanks for making such a cool postcss plugin!

I feel like I've found a potential bug with this. The spec doesn't mention this behaviour specifically, but I'm quite sure it is undesired.

Input:

.foo {
  color: blue;
  &bar {
    color: red;
  }
}

This plugins output:

.foo {
  color: blue
}
.foobar {
  color: red;
}

I would expect to see an error, I think, as the spec suggests & is equivalent of :matches() - which, to my understanding, means they shouldn't concatenate like this.

Perhaps @tabatkins could clarify this?

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