style: Note :lang() as being sensitive to attributes.

This commit is contained in:
Cameron McCormack 2017-06-07 12:27:26 +08:00
parent e299905606
commit c7e2500311
2 changed files with 3 additions and 2 deletions

View file

@ -215,7 +215,8 @@ impl NonTSPseudoClass {
pub fn is_attr_based(&self) -> bool {
matches!(*self,
NonTSPseudoClass::MozTableBorderNonzero |
NonTSPseudoClass::MozBrowserFrame)
NonTSPseudoClass::MozBrowserFrame |
NonTSPseudoClass::Lang(..))
}
}

View file

@ -276,7 +276,7 @@ impl NonTSPseudoClass {
/// Returns true if the evaluation of the pseudo-class depends on the
/// element's attributes.
pub fn is_attr_based(&self) -> bool {
false
matches!(*self, NonTSPseudoClass::Lang(..))
}
}