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

Nested specificity fix #311

Open GauravB159 opened 1 year ago

GauravB159 commented 1 year ago

Fix for issue #309

All tests were passing except one, which it seems was using the old specificity value in the assertion. I have changed that to the correct value.

aeschli commented 1 year ago

Can you add test cases that cover the new code?

GauravB159 commented 1 year ago

Yes, I'll get on that today

GauravB159 commented 1 year ago

@aeschli I have added a few test cases for this.

Note: These might fail when considered with the code from #308 but I will correct them once either PR is merged so it should not be an issue.