mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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,
|
||||
}
|
||||
|
||||
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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue