def text_indent(token):
    """``text-indent`` property validation."""
    length = get_length(token, percentage=True)
    if length:
        return length
``text-indent`` property validation.
weasyprint/css/validation/properties.py