To add to the confusion, while in both OpenGL and DirectX treat Z axis as depth, DirectX uses a left-handed coordinate system, while OpenGL uses mostly[0] right-handed one.
OpenGL-the-interface is kinda neither (screenspace aside), since the application supplies/does all transformations (glFrustum and friends are long deprecated).