def image_rendering(keyword):
    """Validation for ``image-rendering``."""
    return keyword in ('auto', 'crisp-edges', 'pixelated')
Validation for ``image-rendering``.
weasyprint/css/validation/properties.py