There are indeed caps on contributions to the political campaigns of candidates.
However in 2010 the Supreme Court ruled in Citizens United that corporations (including so-called Political Action Committees) and unions cants
have their expenditures capped. A subsequent decision in SpeechNow.org ruled that contributions to these PACs can't be capped, as long as the PAC doesn't coordinate with a candidate.
So here we are. I'm not sure if taxation on these types of contributions would be considered limitation of free speech, but I'm willing to give it a shot in courts.
But this doesn't help with taxation of the rich. There are very few ways the rich can't easily dodge. Tying tax to something they actually spend money on and can't really hide it because of the scruitany on the spending of poliitcal parties would be one such additional way.
That would make it more expensive but still worth it for a billionaire who really cares about their favorite getting elected.
All of that money should go to lower funded candidates so spending above the limit becomes self defeating. Republican mega donors might end up supporting a small communist party more than their own.
If you are taxed as a (lower than 100%) percentage of your donation, there's still a calculus that could make any amount worthwhile if leading to a lower percentage tax/higher percentage gain on your entire principal.
How does that dynamic work if the tax that is collected is used to publicly fund all candidates equally? There can be reasonable rules around parties/candidates having a basic threshold of nominations/support etc.
To give a million to any party you have to pay 2 in tax.