@register_computer('background-position')
def background_position(computer, name, values):
    return [
        (origin_x, length(computer, name, pos_x),
         origin_y, length(computer, name, pos_y))
        for origin_x, pos_x, origin_y, pos_y in values]
Compute lengths in background-position.
dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/css/computed_values.py/background_position