Skip to content

Commit

Permalink
style: Implement AccentColor/AccentColorText and remove -moz-prefixed…
Browse files Browse the repository at this point in the history
… version of the color

As per w3c/csswg-drafts#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
  • Loading branch information
emilio authored and Loirooriol committed Sep 25, 2023
1 parent 8f08127 commit 1847468
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/style/values/specified/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 1847468

Please sign in to comment.