There are other examples in modern society. Chlorine and caustic soda are produced in strictly fixed ratios from NaCl salt and electricity. Extra demand for one will depress the price of the other. The effect is quite sharp in this example, since both products are expensive to store.
Similarly, the hydraulic fracking industry has somewhat depressed the market price of natural gas in the US. The miners are really hunting for high-value liquid hydrocarbons. The gaseous hydrocarbons are quite low-margin by comparison, but come along for the ride in the shale being exploited right now. The effect is more modest in this example since new home construction, new electricity production, and industrial process heat can all be biased towards natural gas. But its still there.
If electric and other high-efficiency propulsion technologies takes off enough to impact gasoline consumption, then a side effect in the US will be an increase in natural gas prices. The source of the increase is twofold: Decreased production of liquid hydrocarbons will decrease supply of gaseous hydrocarbons, and increased demand for electricity will raise demand for gaseous hydrocarbons.