gl.enable(gl.POLYGON_OFFSET_FILL);
gl.polygonOffset(2, 3);WebGLRenderingContext: polygonOffset() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
gl.getParameter(gl.POLYGON_OFFSET_FACTOR); // 2
gl.getParameter(gl.POLYGON_OFFSET_UNITS); // 3