It should be returning a constant when applied to a widget element. The function itself is just returning tex coords at index 3, so preview is showing a gradient since it uses standard UVs. I think widget elements calculate UV3 and collapses them to a single point between 0 and 1 or something.
