Some of those old tanks used a vented cap to keep pulling a vacuum with the fuel pump. As you fill, the same volume of air is going to be rushing out the tank nozzle as the fuel going in, liquid displacing air. All the more modern tanks have a vent connection and a sealed cap, and than an anti-rollover valve in the vent.