def get_keyword(token):
    """If ``token`` is a keyword, return its lowercase name.

    Otherwise return ``None``.

    """
    if token.type == 'ident':
        return token.lower_value
If ``token`` is a keyword, return its lowercase name.

Otherwise return ``None``.
weasyprint/css/utils.py