mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Implement prefers-contrast: custom and let prefers-contrast ride the trains
Differential Revision: https://phabricator.services.mozilla.com/D143198
This commit is contained in:
parent
dbeec6df35
commit
5bdec7a0f4
1 changed files with 3 additions and 2 deletions
|
@ -315,11 +315,12 @@ fn eval_prefers_reduced_motion(device: &Device, query_value: Option<PrefersReduc
|
||||||
#[derive(Clone, Copy, Debug, FromPrimitive, Parse, PartialEq, ToCss)]
|
#[derive(Clone, Copy, Debug, FromPrimitive, Parse, PartialEq, ToCss)]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
pub enum PrefersContrast {
|
pub enum PrefersContrast {
|
||||||
/// More contrast is preferred. Corresponds to an accessibility theme
|
/// More contrast is preferred.
|
||||||
/// being enabled or Firefox forcing high contrast colors.
|
|
||||||
More,
|
More,
|
||||||
/// Low contrast is preferred.
|
/// Low contrast is preferred.
|
||||||
Less,
|
Less,
|
||||||
|
/// Custom (not more, not less).
|
||||||
|
Custom,
|
||||||
/// The default value if neither high or low contrast is enabled.
|
/// The default value if neither high or low contrast is enabled.
|
||||||
NoPreference,
|
NoPreference,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue