fixing proper nesting of nodes for stage-2 css parser