pub fn resolve_color(
    color: &Color,
    opacity: UnitInterval,
    current_color: &Color
) -> Color
Expand description

Resolves a CSS color from itself, an opacity property, and a color property (to resolve currentColor).

A CSS color can be currentColor, in which case the computed value comes from the color property. You should pass the color property’s value for current_color.

Note that currrent_color can itself have a value of currentColor. In that case, we consider it to be opaque black.