def length_or_percentage_tuple(style, name, values):
    """Compute the lists of lengths that can be percentages."""
    return tuple(length(style, name, value) for value in values)
Compute the lists of lengths that can be percentages.
weasyprint/css/computed_values.py