Why does my polyline primitive's depthFailAppearance trigger depending on zoom level of a camera?

Hi,

I create my primitives the following way:

When my zoom level is close to the surface, it seems to test the depth of the polyline and use the depthFail appearance (-100m Boston):

However, if I zoom my camera out, the polylines become solid.

Why is it happening? Is there some parameter that is responsible for using depth test or not?