def anchor(style, name, values):
    """Compute the ``anchor`` property."""
    if values != 'none':
        _, key = values
        anchor_name = style.element.get(key) or None
        return anchor_name
Compute the ``anchor`` property.
weasyprint/css/computed_values.py