def white_space(keyword):
    """``white-space`` property validation."""
    return keyword in ('normal', 'pre', 'nowrap', 'pre-wrap', 'pre-line')
``white-space`` property validation.
weasyprint/css/validation/properties.py