def word_spacing(style, name, value):
    """Compute the ``word-spacing`` property."""
    if value == 'normal':
        return 0
    else:
        return length(style, name, value, pixels_only=True)
Compute the ``word-spacing`` property.
weasyprint/css/computed_values.py