def text_overflow(keyword):
    """Validation for the ``text-overflow`` property."""
    return keyword in ('clip', 'ellipsis')
Validation for the ``text-overflow`` property.
weasyprint/css/validation/properties.py