Bug 103477: Make NodeRenderingContext::parentRenderer and nextRenderer top layer aware

The test passes if you see a green square near the top and green rectangle in the center of the viewport.