def grid_template(style, name, values):
    """Compute the ``grid-template-*`` properties."""
    if values == 'none' or values[0] == 'subgrid':
        return values
    else:
        return _track_size(style, name, values)
Compute the ``grid-template-*`` properties.
weasyprint/css/computed_values.py