def text_decoration_thickness(token):
    """``text-decoration-thickness`` property validation."""
    length = get_length(token, percentage=True)
    if length:
        return length
    if keyword := get_keyword(token) in ('auto', 'from-font'):
        return keyword
``text-decoration-thickness`` property validation.
weasyprint/css/validation/properties.py