def visibility(keyword):
    """``white-space`` property validation."""
    return keyword in ('visible', 'hidden', 'collapse')
``white-space`` property validation.
weasyprint/css/validation/properties.py