From 25de2a406eaecf991e803d4728367055ed55105d Mon Sep 17 00:00:00 2001 From: Zeke Medley Date: Mon, 17 Aug 2020 01:41:16 +0000 Subject: [PATCH] style: Update the prefers-contrast media query to use the new more/less keywords. Per the resolution here: https://github.com/w3c/csswg-drafts/issues/2943#issuecomment-672994920 Differential Revision: https://phabricator.services.mozilla.com/D86848 --- components/style/gecko/media_features.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/components/style/gecko/media_features.rs b/components/style/gecko/media_features.rs index 0a86980167c..ef08cafabe0 100644 --- a/components/style/gecko/media_features.rs +++ b/components/style/gecko/media_features.rs @@ -313,8 +313,8 @@ fn eval_prefers_reduced_motion(device: &Device, query_value: Option) if let Some(query_value) = query_value { match query_value { PrefersContrast::Forced => forced_colors, - PrefersContrast::High => contrast_pref == ContrastPref::High, - PrefersContrast::Low => contrast_pref == ContrastPref::Low, + PrefersContrast::More => contrast_pref == ContrastPref::More, + PrefersContrast::Less => contrast_pref == ContrastPref::Less, PrefersContrast::NoPreference => contrast_pref == ContrastPref::NoPreference, } } else {