Skip to content

Rules like space-y generate incorrect .\- { :where } in transformer-directives #4910

@ouuan

Description

@ouuan

UnoCSS version

66.5.0

Describe the bug

input:

.foo {
  @apply space-y-6;
}

correct (v66.4.2):

.foo>:not(:last-child) ……

incorrect (v66.5.0):

.\-{:where(&>:not(:last-child)) ……

Reproduction

https://unocss.dev/play/#html=DwEwlgbgBAxgNgQwM5ILwCIBmB7b6B8AUFFKJPgsAPTgREll0BG1tRr5QA&config=JYWwDg9gTgLgBAbwFBzgEwKYDNgDsMDCEuOA5gDQpxhQYDOGMA6nmgCyWoxQCGudWaCAxQAIsFoBjGMABu9SgF84WKBBBwA5AFdcESXTqakSDAA9IsdNh7aANvEw58REsFIAKZKhr1GdAC44AG0qH1oGZlY2DwBKTjgAXQTuPgEhEUCQsLhU-kEoYTEJDGk5ejiE5KRFWKQgA&css=HQMw9mAEDeBQmQAIEMAOqA2BPSBnVyAxgKYC0WpAbANywC%2BQA&options=N4XyA&version=66.5.0

System Info

No response

Validations

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