-
-
Notifications
You must be signed in to change notification settings - Fork 965
Closed
Description
UnoCSS version
66.5.1
Describe the bug
cssExtend in presetTypography generates selector in a way that makes it impossible for ::before element to exist.
How it is currently generated:
:is(.prose) {
:where(blockquote > *:first-child::before):not(
:where([class~='not-prose'], [class~='not-prose'] *)
) {}
}How it should generate:
:is(.prose) {
:where(blockquote > *:first-child):not(
:where([class~='not-prose'], [class~='not-prose'] *)
)::before {}
}How it was generated in 0.62.4:
.prose :where(blockquote > *):not(:where(.not-prose, .not-prose *)):first-child::before {}Reproduction
https://github.com/SharpMars/unocss-cssextend-pseudoelem-repro
System Info
Windows 11, Firefox 144.0b2, initially noticed in Astro, repro in SolidJS
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels