def appearance(token):
    """``appearance`` property validation."""
    keyword = get_keyword(token)
    if keyword in ('none', 'auto'):
        return keyword
``appearance`` property validation.
weasyprint/css/validation/properties.py