If the surface is continuous and the electric field is different at different surface elements, then what is the electric flux?