mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
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:
parent
f1bf68ef25
commit
99d588a90e
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue