mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Restrict XUL tree pseudos on nightly and early-beta.
Differential Revision: https://phabricator.services.mozilla.com/D2598
This commit is contained in:
parent
998e6f1797
commit
888ad3eabe
2 changed files with 8 additions and 2 deletions
|
@ -488,7 +488,9 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
|
|||
}
|
||||
let args = args.into_boxed_slice();
|
||||
if let Some(pseudo) = PseudoElement::tree_pseudo_element(&name, args) {
|
||||
return Ok(pseudo);
|
||||
if self.is_pseudo_element_enabled(&pseudo) {
|
||||
return Ok(pseudo);
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue