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

transformerDirectives fails to apply in nested CSS #3823

Closed
4 tasks done
CodeF53 opened this issue May 20, 2024 · 1 comment
Closed
4 tasks done

transformerDirectives fails to apply in nested CSS #3823

CodeF53 opened this issue May 20, 2024 · 1 comment

Comments

@CodeF53
Copy link

CodeF53 commented May 20, 2024

UnoCSS version

0.60.2

Describe the bug

@apply doesn't work following nested css.

.a {
  @apply 'ma'; /* applies */
  .b { @apply 'bg-green' } /* applies */
  @apply 'bg-red'; /* doesn't apply */
}

Reproduction

Reproduction

System Info

Windows 10, WSL Ubuntu, Firefox and Chromium, UnoCSS CLI, Ruby On Rails

Validations

@Simon-He95
Copy link
Contributor

css-tree does not currently support nested css, so there may be problems with parsing and it is not recommended to use it this way.

@Simon-He95 Simon-He95 closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
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

No branches or pull requests

2 participants