def text_align_last(keyword):
    """``text-align-last`` property validation."""
    return keyword in (
        'auto', 'left', 'right', 'center', 'justify', 'start', 'end')
``text-align-last`` property validation.
weasyprint/css/validation/properties.py