Bug 1639756 - Enable :is() and :where() in UA sheets. r=jwatt

This will allow us to clean them up.

Differential Revision: https://phabricator.services.mozilla.com/D76262
This commit is contained in:
Emilio Cobos Álvarez 2020-05-21 12:10:34 +00:00
parent dcec1f3697
commit 0b56353433

View File

@ -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]