Skip to content

fix: hash class selectors inside :not/:has/:is/:where args - #148

Open
Steve0x2a wants to merge 1 commit into
micantoine:masterfrom
Steve0x2a:fix/hash-classes-inside-pseudo-args
Open

Steve0x2a wants to merge 1 commit into
micantoine:masterfrom
Steve0x2a:fix/hash-classes-inside-pseudo-args

Conversation

@Steve0x2a

Copy link
Copy Markdown

Class selectors nested in :not(), :has(), :is(), and :where() arguments were left unhashed, so the emitted CSS never matched the hashed markup classes.

parseClassSelectors now walks PseudoClassSelector.args (skipping :global / :local) and hashes nested class selectors. Native-mode atrule walking is unchanged, so this does not overlap with #147.

Credits @Neunerlei for the report and repro.

Fixes #132

Signed-off-by: Yi Zhan <stevesough@gmail.com>
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.

Bug: Classes in pseudo-selectors are not transformed

1 participant