#358·windicss

[Suggestion] Add child selectors variant

Author: kingdun3284Created Jun 20, 2021Updated Apr 6, 2023
Labelsneeds reproductionneeds triage

Current Behaviour:

typescript
sibling:after:content-Hi

generates

css
.sibling\:after\:content-Hi::after + * {
  content: "Hi";
}

should be:

css
.sibling\:after\:content-Hi + *::after {
  content: "Hi";
}

Idea is to determine the variant order and add corresponding variant after child selector