def page(token):
    """``page`` property validation."""
    if token.type == 'ident':
        return 'auto' if token.lower_value == 'auto' else token.value
``page`` property validation.
weasyprint/css/validation/properties.py