In Vav4.0, layers are in the same "span space" as their parents.
That means spans can be closed inside layer, and affect layers' parents. Text in color=red SPAN. Text between 2 LAYERs.

Text not in layer