Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
style: Note :lang() as being sensitive to attributes.
  • Loading branch information
heycam committed Jun 8, 2017
1 parent e299905 commit c7e2500
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/style/gecko/selector_parser.rs
Expand Up @@ -215,7 +215,8 @@ impl NonTSPseudoClass {
pub fn is_attr_based(&self) -> bool {
matches!(*self,
NonTSPseudoClass::MozTableBorderNonzero |
NonTSPseudoClass::MozBrowserFrame)
NonTSPseudoClass::MozBrowserFrame |
NonTSPseudoClass::Lang(..))
}
}

Expand Down
2 changes: 1 addition & 1 deletion components/style/servo/selector_parser.rs
Expand Up @@ -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(..))
}
}

Expand Down

0 comments on commit c7e2500

Please sign in to comment.