I had a dog (several little dudes ago) do that in my car! I was trying to make him stay on the seat because I didn’t want him crawling under it, so he settled on leaning over the front of the seat to vomit (I hadn’t realized that’s what he was going for, but I found it endearingly considerate)