Skip to content
Permalink
Browse files
style: Remove prefers-color-scheme: no-preference.
It was removed from the spec.

Differential Revision: https://phabricator.services.mozilla.com/D78834
  • Loading branch information
emilio committed Jun 18, 2020
1 parent 33b548a commit 1f797ca
Showing 1 changed file with 5 additions and 0 deletions.
@@ -278,13 +278,18 @@ 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)]
#[allow(missing_docs)]
pub enum PrefersColorScheme {
Light,
Dark,
#[parse(condition = "color_scheme_no_preference_enabled")]
NoPreference,
}

0 comments on commit 1f797ca

Please sign in to comment.