That was tried in Ontario (cap and trade), but there was enough misinformation going around that the general populace thought it was just a standard tax on individuals.
This will likely be repealed by voters via initiative[0] this fall.
[0] https://www.seattletimes.com/seattle-news/environment/initia...
More fun reading on our defacto gas tax:
https://www.king5.com/article/news/investigations/former-wsd...