def get_color(style, key):
    """Return color, taking care of possible currentColor value."""
    value = style[key]
    return value if value != 'currentcolor' else style['color']
Return color, taking care of possible currentColor value.
weasyprint/draw/color.py