Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure CSS before a layer stays unlayered #14596

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Conversation

RobinMalfait
Copy link
Member

This PR fixes an issue where CSS that existed before a layer:

.foo {
  color: red;
}

@layer components {
  .bar {
    color: blue;
  }
}

Was turned into an @layer without a name:

@layer {
  .foo {
    color: red;
  }
}

@utility bar {
  color: blue;
}

But in this case, it should stay as-is:

.foo {
  color: red;
}

@utility bar {
  color: blue;
}

@RobinMalfait RobinMalfait merged commit e3764ac into next Oct 4, 2024
1 check passed
@RobinMalfait RobinMalfait deleted the fix/layer-without-name branch October 4, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants