Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The specificity computation is wrong for :where and :is #136

Open
stof opened this issue Jan 4, 2023 · 0 comments
Open

The specificity computation is wrong for :where and :is #136

stof opened this issue Jan 4, 2023 · 0 comments

Comments

@stof
Copy link

stof commented Jan 4, 2023

The nodes implemented in the parser don't represent :is(<selector_list>) and :where(<selector_list>) but <selector>:is(<selector_list>) and <selector>:where(<selector_list>).
The computation of the specificity loses the specificity of <selector>.

Note: I discovered that mistake while reviewing symfony/symfony#48803 as the symfony/css-selector PHP package is mostly a PHP port of this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants