From 0c8865b8e18f8ee42dd00e1aca983dae74e36a03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 21 May 2020 12:10:34 +0000 Subject: [PATCH] style: Enable :is() and :where() in UA sheets. This will allow us to clean them up. Differential Revision: https://phabricator.services.mozilla.com/D76262 --- components/style/gecko/selector_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]