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

Specificity is miscalculated for nested selectors #161

Open
C-Ezra-M opened this issue Aug 19, 2022 · 0 comments
Open

Specificity is miscalculated for nested selectors #161

C-Ezra-M opened this issue Aug 19, 2022 · 0 comments

Comments

@C-Ezra-M
Copy link

  • VS Code Version: 1.70.2
  • SCSS IntelliSense Version: v0.10.0
  • Operating System: Windows 11 Version 21H2 Build 22000.856

Reproducible Case:

This SCSS code snippet.

.toc {
  #left-col & {
    @media screen and (min-width: 960px) {
      display: none;
    }
  }
}

Steps to Reproduce:

  1. Copy-paste the above code snippet.
  2. Hover over #left-col &.

Expected: The specificity is calculated as (1, 1, 0).
Actual: The specificity is calculated as (1, 0, 0), ignoring the toc class's specificity.

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

No branches or pull requests

1 participant