def background_attachment(keyword):
    """``background-attachment`` property validation."""
    return keyword in ('scroll', 'fixed', 'local')
``background-attachment`` property validation.
weasyprint/css/validation/properties.py