def font_style(keyword):
    """``font-style`` descriptor validation."""
    return keyword in ('normal', 'italic', 'oblique')
``font-style`` descriptor validation.
weasyprint/css/validation/descriptors.py