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

[scss] Incorrect selector specificity in hover tooltip #72608

Open
infinnie opened this issue Apr 19, 2019 · 3 comments
Open

[scss] Incorrect selector specificity in hover tooltip #72608

infinnie opened this issue Apr 19, 2019 · 3 comments
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

@infinnie
Copy link
Contributor

  • VSCode Version: 1.33.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Type the code like
    image
  2. Move the mouse over &__b

image

The selector specificity is displayed as (0, 0, 0) instead of the correct (0, 1, 0), it being a class selector.

Does this issue occur when all extensions are disabled?: Yes/No
Yes.

@octref octref self-assigned this Apr 20, 2019
@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 Apr 20, 2019
@octref octref added this to the Backlog milestone Apr 20, 2019
@parzh
Copy link

parzh commented May 4, 2019

I've encountered this also with vanilla CSS (Ctrl+K, M, "css"):

image

... whereas it should be (0, 0, 3), according to the "Selector Specificity" link provided in the tooltip.


Notice how :before was prefixed with a single colon. If I prefix it with double colon instead, like in ::before, I get correct results:

image

@parzh
Copy link

parzh commented Aug 5, 2019

@aeschli @octref Would you mind if somebody checks this, and closes the issue in case it is fixed? Appreciate this!

@aeschli
Copy link
Contributor

aeschli commented Aug 19, 2019

I still see the issue. The selector specificity is displayed as (0, 0, 0).

@aeschli aeschli changed the title SCSS: Incorrect selector specificity in hover tooltip [scss] Incorrect selector specificity in hover tooltip Feb 21, 2020
@octref octref assigned aeschli and unassigned octref May 1, 2020
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

3 participants