Would like to have a control of the elements that get rendered on the screen, say parsing z-index and ensuring that any element that has z-index more than 1000 only to be painted on the screen and anything lesser than that should not be rendered.

Is there a way to customize the paint/render engine so that specific elements only get rendered?

Thanks.