def box(keyword):
    """Validation for the ``<box>`` type used in ``background-clip``
    and ``background-origin``."""
    return keyword in ('border-box', 'padding-box', 'content-box')
Validation for the ``<box>`` type used in ``background-clip``
and ``background-origin``.
weasyprint/css/validation/properties.py