Bug 1823602 - Check that the lowercase attribute is different before trying to track it r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D173112
This commit is contained in:
Zach Hoffman 2023-03-21 10:23:54 +00:00
parent c44c202b66
commit 96361c5339

View File

@ -1999,12 +1999,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
}