def border_image_repeat(style, name, values):
    """Compute the ``border-image-repeat`` property."""
    return (values * 2) if len(values) == 1 else values
Compute the ``border-image-repeat`` property.
weasyprint/css/computed_values.py