def expand_word_wrap(tokens, name):
    """Expand the ``word-wrap`` legacy property.

    See https://www.w3.org/TR/css-text-3/#overflow-wrap

    """
    keyword = overflow_wrap(tokens)
    if keyword is None:
        raise InvalidValues
    yield 'overflow-wrap', tokens
Expand the ``word-wrap`` legacy property.

See https://www.w3.org/TR/css-text-3/#overflow-wrap
weasyprint/css/validation/expanders.py