If you define line names on the subgrid, these are added to any lines defined on the parent.
Line names are added to a subgrid, by listing the names after the subgrid keyword, for example grid-template-columns: subgrid [sub-1] [sub-2] [sub-3] [sub-4];
.
Read the specification | View example as full page