Skip to content

space-around-operator incorrectly enforces negative z-index #454

@Dru89

Description

@Dru89

It looks like space-around-operator's exception handling is missing some cases where negative numbers don't necessarily have a dimension or percentage. For instance, the following should be valid CSS:

.foo {
  z-index: -1;
}

Unfortunately, it looks like the space-around-operator rule expects that - to have a space before it. Putting a space before it actually breaks the AST, though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions