In this situation a stainless steel ball (acting under gravitational forces) seals the vent shut preventing fuel from escaping through the ventilation system. This valve has been designed to mount inline VERTICALLY into a AN-6 section of pipework.
eBay