The instrument case of the altimeter is airtight and has a vent to the static port. Inside the instrument, there is a sealed aneroid barometer. As pressure in the case decreases, the internal barometer expands, which is mechanically translated into a determination of altitude.