The WebGL spec says that shader source has to conform to the [GLSL ES 1.00 spec](https://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf). It looks like there are only a few predefined macros and additional ones for available extensions so it won't work for built-ins.