From ad688806270f60ceedd24b93f23d272fc92b0e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 22 Jun 2022 09:45:06 +0000 Subject: [PATCH] style: Implement AccentColor/AccentColorText and remove -moz-prefixed version of the color As per https://github.com/w3c/csswg-drafts/issues/7347. Mostly renaming, doesn't change behavior other than exposing the new color keywords (tested in wpt). Differential Revision: https://phabricator.services.mozilla.com/D149876 --- components/style/values/specified/color.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/style/values/specified/color.rs b/components/style/values/specified/color.rs index 723f651ab6f..674d51ad211 100644 --- a/components/style/values/specified/color.rs +++ b/components/style/values/specified/color.rs @@ -296,12 +296,12 @@ pub enum SystemColor { MozMacTooltip, /// Theme accent color. - #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] - MozAccentColor, + /// https://drafts.csswg.org/css-color-4/#valdef-system-color-accentcolor + Accentcolor, /// Foreground for the accent color. - #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] - MozAccentColorForeground, + /// https://drafts.csswg.org/css-color-4/#valdef-system-color-accentcolortext + Accentcolortext, /// The background-color for :autofill-ed inputs. #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]