aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/selector_parser.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2020-05-21 12:10:34 +0000
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-06-04 01:50:36 +0200
commit0c8865b8e18f8ee42dd00e1aca983dae74e36a03 (patch)
tree165923048b8d151afeffa8cf68ed8e23ba885751 /components/style/gecko/selector_parser.rs
parent54d869c1115afa571067dd107318b4aee8a73b7f (diff)
downloadservo-0c8865b8e18f8ee42dd00e1aca983dae74e36a03.tar.gz
servo-0c8865b8e18f8ee42dd00e1aca983dae74e36a03.zip
style: Enable :is() and :where() in UA sheets.
This will allow us to clean them up. Differential Revision: https://phabricator.services.mozilla.com/D76262
Diffstat (limited to 'components/style/gecko/selector_parser.rs')
-rw-r--r--components/style/gecko/selector_parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs
index adb410908b9..a46068d923a 100644
--- a/components/style/gecko/selector_parser.rs
+++ b/components/style/gecko/selector_parser.rs
@@ -354,7 +354,7 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
#[inline]
fn parse_is_and_where(&self) -> bool {
- static_prefs::pref!("layout.css.is-where-selectors.enabled")
+ self.in_user_agent_stylesheet() || static_prefs::pref!("layout.css.is-where-selectors.enabled")
}
#[inline]