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
This commit is contained in:
Emilio Cobos Álvarez 2022-09-20 17:52:34 +00:00 committed by Martin Robinson
parent f1bf68ef25
commit 99d588a90e

View file

@ -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,