mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
33b548ae64
commit
1f797ca24d
1 changed files with 5 additions and 0 deletions
|
@ -278,6 +278,10 @@ enum PrefersReducedMotion {
|
||||||
Reduce,
|
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.
|
/// Values for the prefers-color-scheme media feature.
|
||||||
#[derive(Clone, Copy, Debug, FromPrimitive, Parse, PartialEq, ToCss)]
|
#[derive(Clone, Copy, Debug, FromPrimitive, Parse, PartialEq, ToCss)]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
|
@ -285,6 +289,7 @@ enum PrefersReducedMotion {
|
||||||
pub enum PrefersColorScheme {
|
pub enum PrefersColorScheme {
|
||||||
Light,
|
Light,
|
||||||
Dark,
|
Dark,
|
||||||
|
#[parse(condition = "color_scheme_no_preference_enabled")]
|
||||||
NoPreference,
|
NoPreference,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue