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
This commit is contained in:
Emilio Cobos Álvarez 2022-06-22 09:45:06 +00:00 committed by Martin Robinson
parent ca6ad97159
commit ad68880627

View file

@ -296,12 +296,12 @@ pub enum SystemColor {
MozMacTooltip, MozMacTooltip,
/// Theme accent color. /// Theme accent color.
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] /// https://drafts.csswg.org/css-color-4/#valdef-system-color-accentcolor
MozAccentColor, Accentcolor,
/// Foreground for the accent color. /// Foreground for the accent color.
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] /// https://drafts.csswg.org/css-color-4/#valdef-system-color-accentcolortext
MozAccentColorForeground, Accentcolortext,
/// The background-color for :autofill-ed inputs. /// The background-color for :autofill-ed inputs.
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")] #[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]