style: Remove prefers-color-scheme: no-preference.

It was removed from the spec.

Differential Revision: https://phabricator.services.mozilla.com/D78834
This commit is contained in:
Emilio Cobos Álvarez 2020-06-14 23:26:04 +00:00
parent 33b548ae64
commit 1f797ca24d
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A

View file

@ -278,6 +278,10 @@ enum PrefersReducedMotion {
Reduce,
}
fn color_scheme_no_preference_enabled(_: &crate::parser::ParserContext) -> bool {
static_prefs::pref!("layout.css.prefers-color-scheme-no-preference.enabled")
}
/// Values for the prefers-color-scheme media feature.
#[derive(Clone, Copy, Debug, FromPrimitive, Parse, PartialEq, ToCss)]
#[repr(u8)]
@ -285,6 +289,7 @@ enum PrefersReducedMotion {
pub enum PrefersColorScheme {
Light,
Dark,
#[parse(condition = "color_scheme_no_preference_enabled")]
NoPreference,
}