Former referee David Elleray believes the offside law is "going backwards" following the implementation of VAR around the world.