How can an air pocket be created when there's a vent tube right next door?
This is why it's illegal to "top off" your tanks. At least in some states.
Because the evap vent lines are never going to be large enough to allow the tank to fill the void before the fill-vent back feeds and shuts off the pump. Which is what allows the large air space up top to remain air.
Since there is no inward pressure once the pump is shut off, the air space remains and gives the fumes the chance to exit through the venting system.
But if you literally top off the tank, then the air space can be forced above it's normal capacity. The air flowing out the vent is very minimal, but the much larger filler neck vent will let the liquid displace the air.
Pre-evap vehicles still had the air space, but you could literally fill the tank right up to the gas cap without harming the system if you kept topping it off. Because there was no venting system to mess up.
The good news is that you got extra gas for your trouble, but the bad news is that if you parked it right away without driving it enough to lower the level, the next time you came out to your parked car you might have a big flowing mess of gas spilling out the filler neck.
It's actually one of the design reasons, other than pure aesthetics that even back in the fifties and sixties, and maybe before that, you had a lot of cars with recessed gas caps behind doors, license plates, tail lights and other places along with drain holes that directed spilled gas out and down to the pavement. Great for paint, but not so good for a hot stinky garage!
Trucks were usually not so lucky. They got relegated to "who would care about the paint" crowd, to the "truck owners know not to over-fill anyway" crowd, and the "why should be care about the end-user as long as it costs less" crowd, during the design process.
Look at any old car or truck with a visible gas cap out the side of the body and if the owner was a topper-offer type, you likely saw the paint damage from the filler cap to the ground. We don't see that as much anymore, but still some old cars are running around like that. My own '68 is having that problem and I'm not a topper-offer (any more that is;D)!
So any time you see someone, or you are that someone, that is clicking the pump trigger and re-clicking and re-clicking to get that last little bit of gas in the tank, what is going on is the air space is slowly being replaced by liquid.
Alternately, stopping your fill process when the gas pump shuts off the first time (when it's working properly at least) maintains the required air space.
Every vehicle, even brand new ones, can sometimes shut the pump off falsely early depending on the pump nozzle being used. Once you know your individual vehicle and it's pumping characteristics though, you can determine whether it's actually full, or needs another bit of pumping.
In the old days we were expected to just know how to top-off correctly for circumstances, or suffer the consequences. Now it's a legal thing because it's more about keeping the air clean on the one hand, and not damaging the (VERY EXPENSIVE!) EVAP system on the other.
Paul