def color(token):
    """``*-color`` and ``color`` properties validation."""
    result = parse_color(token)
    if result == 'currentcolor':
        return 'inherit'
    else:
        return result
``*-color`` and ``color`` properties validation.
weasyprint/css/validation/properties.py