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

[css] Wrong selector specificity values with :nth-child(even) and :nth-child(odd) #74068

Open
nicolasploquin opened this issue May 21, 2019 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug css-less-scss Issues and items concerning CSS,Less,SCSS styling
Milestone

Comments

@nicolasploquin
Copy link

nicolasploquin commented May 21, 2019

Issue Type: Bug

In CSS files :
It seems like odd and even keywords count as element selectors.

div:nth-child(odd){...}

indicates

<div :nth-child>
Selector Specificity: (0, 1, 2)

Specificity should be Selector Specificity: (0, 1, 1)

VS Code version: Code 1.33.1 (51b0b28, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.17763

Extensions: none

@octref octref added bug Issue identified by VS Code Team member as probable bug css-less-scss Issues and items concerning CSS,Less,SCSS styling labels May 22, 2019
@octref octref added this to the Backlog milestone May 22, 2019
@octref octref assigned aeschli and unassigned octref May 1, 2020
@aeschli aeschli changed the title Wrong selector specificity values with :nth-child(even) and :nth-child(odd) [css] Wrong selector specificity values with :nth-child(even) and :nth-child(odd) May 5, 2020
@SStranks
Copy link

SStranks commented Nov 3, 2023

Fix for this issue PR #369

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug css-less-scss Issues and items concerning CSS,Less,SCSS styling
Projects
None yet
Development

No branches or pull requests

4 participants