From 99d588a90ebc05618bd055fe2cb77de99ff45035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Tue, 20 Sep 2022 17:52:34 +0000 Subject: [PATCH] style: Honor currentColor in HCM I think it's fair to honor it, just like we honor system color keywords. By definition if we're forcing colors currentColor can only be forced or a system color. Differential Revision: https://phabricator.services.mozilla.com/D157675 --- components/style/values/specified/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/values/specified/color.rs b/components/style/values/specified/color.rs index aba43f4f25b..cf0c10c522c 100644 --- a/components/style/values/specified/color.rs +++ b/components/style/values/specified/color.rs @@ -524,7 +524,7 @@ impl Color { match *self { #[cfg(feature = "gecko")] Color::InheritFromBodyQuirk => false, - Color::CurrentColor => false, + Color::CurrentColor => true, #[cfg(feature = "gecko")] Color::System(..) => true, Color::Numeric { ref parsed, .. } => allow_transparent && parsed.alpha == 0,