Skip to content

Conversation

@thecrypticace
Copy link
Contributor

This improves canonicalization of arbitrary variants that use pseudo classes a bit.

Before this we would see [&_:first-child]:flex and leave it be when it can instead be written as **:first:flex. Likewise, for pseudo classes that don't have a variant, we can still simplify things a bit as [&_:--custom] can be written **:[:--custom].

@thecrypticace thecrypticace requested a review from a team as a code owner October 22, 2025 11:41
@thecrypticace thecrypticace force-pushed the feat/canonicalize-more-stars branch from 259bbb9 to 934b2d0 Compare October 22, 2025 11:46
Base automatically changed from fix/canonical-double-star to main October 22, 2025 12:19
@thecrypticace thecrypticace force-pushed the feat/canonicalize-more-stars branch from 934b2d0 to dd1ddf2 Compare October 22, 2025 12:22
@thecrypticace thecrypticace merged commit a41add9 into main Oct 22, 2025
7 checks passed
@thecrypticace thecrypticace deleted the feat/canonicalize-more-stars branch October 22, 2025 12:29
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

Successfully merging this pull request may close these issues.

2 participants