def footnote_display(keyword):
    """Validation for ``footnote-display``."""
    return keyword in ('block', 'inline', 'compact')
Validation for ``footnote-display``.
weasyprint/css/validation/properties.py