If a Pokemon were to use Gravity on a charizard with Air Slash, would Charizard still get STAB?
Gravity is different than roost. Gravity makes flying types vulnerable to ground type moves while roost makes you lose your flying type. So the answer is, you will still have STAB since you are still technically flying type.