mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30: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)]
|
||||
#[repr(u8)]
|
||||
pub enum PrefersContrast {
|
||||
/// More contrast is preferred. Corresponds to an accessibility theme
|
||||
/// being enabled or Firefox forcing high contrast colors.
|
||||
/// More contrast is preferred.
|
||||
More,
|
||||
/// Low contrast is preferred.
|
||||
Less,
|
||||
/// Custom (not more, not less).
|
||||
Custom,
|
||||
/// The default value if neither high or low contrast is enabled.
|
||||
NoPreference,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue