def length_tuple(style, name, values):
    """Compute the properties with a list of lengths."""
    return tuple(
        length(style, name, value, pixels_only=True) for value in values)
Compute the properties with a list of lengths.
weasyprint/css/computed_values.py