aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2022-06-22 09:45:06 +0000
committerMartin Robinson <mrobinson@igalia.com>2023-10-02 14:37:19 +0000
commitad688806270f60ceedd24b93f23d272fc92b0e86 (patch)
tree9716ec832aed0eea12ff776ee5c5ce0e52ab52f2
parentca6ad97159b89666e1ce821b3cbed9bd8321745b (diff)
downloadservo-ad688806270f60ceedd24b93f23d272fc92b0e86.tar.gz
servo-ad688806270f60ceedd24b93f23d272fc92b0e86.zip
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
-rw-r--r--components/style/values/specified/color.rs8
1 files 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")]