microsoft / vscode-css-languageservice

CSS, LESS & SCSS language service extracted from VSCode to be reused, e.g in the Monaco editor.
MIT License
317 stars 176 forks source link

[SCSS] Specificity values for nested rules are incorrect #309

Open GauravB159 opened 1 year ago

GauravB159 commented 1 year ago

Discovered this issue while working on #249

200559512-a3643c9c-e465-4dc2-aefc-9cb242d641e8

input { #id { p { color: red; } } } - Specificity (0, 0, 1)

input #id p { color: red; } - Specificity (1, 0, 2)

Even though they are equivalent