only apply rules for active elements to directly nested anchors