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.
How to change your username
How to add a user avatar
Why was my post hidden?
Flags vs Downvotes
Official PokemonDb League
Type a Pokemon name, type, move or ability to see instant results.