def break_before_after(style, name, value):
    """Compute the ``break-before`` and ``break-after`` properties."""
    return 'page' if value == 'always' else value
Compute the ``break-before`` and ``break-after`` properties.
weasyprint/css/computed_values.py