Skip to content

Problem with nesting rules #136

@franck-paul

Description

@franck-paul

The source CSS file is as below:

.tidy_swap {
  margin-block-end: 0.5em;
  padding: 0.125em;

  color: var(--submit-color);
  background: var(--submit-background);

  &:is(:hover, :focus) {
    color: var(--submit-background);
    background: var(--submit-color);
  }
}

I run the command minify test.css > test.min.css and the result is as below:

.tidy_swap{margin-block-end:0.5em;padding:.125em;color:var(--submit-color);background:var(--submit-background)}

The &:is(…) is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions