-
-
Notifications
You must be signed in to change notification settings - Fork 475
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
📎 Implement stylelint/no-descending-specificity
#2810
Comments
stylelintno-descending-specificity
Hi, Can I work on this? |
Absolutely, assigned. |
stylelintno-descending-specificity
stylelint/no-descending-specificity
I have a question. In the process of implementing this feature, I started by creating a function to calculate the specificity of CSS selectors. During this process, I noticed that there is something called CssMetavariable within AnyCssSelector. biome/crates/biome_css_syntax/src/generated/nodes.rs Lines 8285 to 8291 in ab0f96e
Since I'm not very familiar with CSS, I'm unsure how to handle the specificity calculation for CssMetavariable. Could you please advise me on how to process the specificity of CssMetavariable? I found where it is used, but I don't fully understand what it represents. biome/crates/biome_css_parser/tests/css_test_suite/ok/grit_metavariable/metavar.css.snap Lines 55 to 61 in ab0f96e
|
The specificity of selectors should be already available in the semantic model biome/crates/biome_css_semantic/src/semantic_model/model.rs Lines 113 to 128 in d03c6cd
|
I completely missed that... Thank you for letting me know! |
I realized that the specificity calculation has not been implemented yet. biome/crates/biome_css_semantic/src/events.rs Lines 201 to 207 in d03c6cd
Is there anyone already working on this implementation? If not, I would like to give it a try. |
@tunamaguro I don't think there's someone working on it, you're more than welcome to tackle it |
Okay, I'll try it. |
Description
Implement no-descending-specificity
Important
sass
andless
.Want to contribute? Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
The text was updated successfully, but these errors were encountered: