style: Check that the lowercase attribute is different before trying to track it

Differential Revision: https://phabricator.services.mozilla.com/D173112
This commit is contained in:
Zach Hoffman 2023-03-21 10:23:54 +00:00 committed by Martin Robinson
parent 4804e8dd94
commit 536b3d603b

View file

@ -2004,12 +2004,16 @@ impl<'a> SelectorVisitor for StylistSelectorVisitor<'a> {
) -> bool {
if self.in_selector_list_of.in_nth_of() {
self.nth_of_attribute_dependencies.insert(name.clone());
self.nth_of_attribute_dependencies
.insert(lower_name.clone());
if name != lower_name {
self.nth_of_attribute_dependencies
.insert(lower_name.clone());
}
}
self.attribute_dependencies.insert(name.clone());
self.attribute_dependencies.insert(lower_name.clone());
if name != lower_name {
self.attribute_dependencies.insert(lower_name.clone());
}
true
}