mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Note :lang() as being sensitive to attributes.
This commit is contained in:
parent
e299905606
commit
c7e2500311
2 changed files with 3 additions and 2 deletions
|
@ -215,7 +215,8 @@ impl NonTSPseudoClass {
|
||||||
pub fn is_attr_based(&self) -> bool {
|
pub fn is_attr_based(&self) -> bool {
|
||||||
matches!(*self,
|
matches!(*self,
|
||||||
NonTSPseudoClass::MozTableBorderNonzero |
|
NonTSPseudoClass::MozTableBorderNonzero |
|
||||||
NonTSPseudoClass::MozBrowserFrame)
|
NonTSPseudoClass::MozBrowserFrame |
|
||||||
|
NonTSPseudoClass::Lang(..))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -276,7 +276,7 @@ impl NonTSPseudoClass {
|
||||||
/// Returns true if the evaluation of the pseudo-class depends on the
|
/// Returns true if the evaluation of the pseudo-class depends on the
|
||||||
/// element's attributes.
|
/// element's attributes.
|
||||||
pub fn is_attr_based(&self) -> bool {
|
pub fn is_attr_based(&self) -> bool {
|
||||||
false
|
matches!(*self, NonTSPseudoClass::Lang(..))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue