Just about all steam-powered cars were gasoline-fired, for the record. Some used heavier fuel oil, but always started up with gasoline because the heavier oil needed to be used in an already-hot engine to burn more efficiently.
Also, AFAICR, Rudolf Diesel designed (or tried to design) his engine to be able to burn pulverized coal as an alternative fuel.
Substitute kerosene for gasoline, and you'd be a bit closer. Some used gasoline to warm up the engine before the kerosene kicked in.
Actually steam power is a lot more practical than electric powered cars. But, I would not want to be in a collision in one. Steam is very dangerous in a wreck.
And remember, electric cars have very heavy batteries and they are full of acid. Another hazard.