collectZOrderLayers() has logic that says: bool stacking = isStackingContext(); if (!isNormalFlowOnly()) ... but it's no clear if a layer can be neither stacking nor normal flow only.
A position:relative layer is not normal flow, and not a stacking context.