Skip to content

Pseudoselectors without & prefix emit malformed CSS #323

@quantizor

Description

@quantizor
div {
  :hover {
    color: red;
  }
}

The above code used to work in stylis v3, but it seems since stylis v4 an ampersand is explicitly required, e.g.

div {
  &:hover {
    color: red;
  }
}

Can the prior functionality to pretend an & is there for a leading : be restored?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions