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

Nested atrule in unused selector results in broken CSS output #13390

Open
Rich-Harris opened this issue Sep 25, 2024 · 0 comments · May be fixed by #13410
Open

Nested atrule in unused selector results in broken CSS output #13390

Rich-Harris opened this issue Sep 25, 2024 · 0 comments · May be fixed by #13410
Assignees
Labels
Milestone

Comments

@Rich-Harris
Copy link
Member

Describe the bug

This...

<style>
  .unused {
    @media (min-width: 400px) {
      color: red;
    }
  }
</style>

...results in this:

  /* (unused) .unused*/ {
    @media (min-width: 400px) {
      color: red;
    }
  }

Reproduction

link

Logs

No response

System Info

next

Severity

annoyance

@Rich-Harris Rich-Harris added this to the 5.0 milestone Sep 25, 2024
@paoloricciuti paoloricciuti self-assigned this Sep 26, 2024
@paoloricciuti paoloricciuti linked a pull request Sep 26, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants