Skip to content

Commit 72e4482

Browse files
Pranav Acharematipico
andauthored
Update crates/biome_css_semantic/src/semantic_model/specificity.rs
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
1 parent ff5c482 commit 72e4482

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

crates/biome_css_semantic/src/semantic_model/specificity.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ fn evaluate_any_subselector(selector: &AnyCssSubSelector) -> Specificity {
130130
AnyCssSubSelector::CssAttributeSelector(_) => CLASS_SPECIFICITY,
131131
AnyCssSubSelector::CssPseudoClassSelector(s) => evaluate_pseudo_selector(s),
132132
AnyCssSubSelector::CssPseudoElementSelector(_) => TYPE_SPECIFICITY,
133-
// The nesting selector's specificity is the specificity of the parent
134-
// selector it's substituted with, which isn't known here. As with the
135-
// leading `&` in `nesting_selectors`, treat it as contributing nothing.
136133
AnyCssSubSelector::CssNestedSelector(_) => ZERO_SPECIFICITY,
137134
AnyCssSubSelector::CssBogusSubSelector(_) => ZERO_SPECIFICITY,
138135
}

0 commit comments

Comments
 (0)