def text_transform(keyword):
    """``text-align`` property validation."""
    return keyword in (
        'none', 'uppercase', 'lowercase', 'capitalize', 'full-width')
``text-align`` property validation.
weasyprint/css/validation/properties.py