@register_computer('line-height')
def line_height(computer, name, value):
    if value == 'normal':
        return value
    elif not value.unit:
        return ('NUMBER', value.value)
    elif value.unit == '%':
        factor = value.value / 100.
        font_size_value = computer.computed.font_size
        pixels = factor * font_size_value
    else:
        pixels = length(computer, name, value, pixels_only=True)
    return ('PIXELS', pixels)
Compute the ``line-height`` property.
dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/css/computed_values.py/line_height