To my knowledge, no such laws have been tested in the courts. If that happens as a result of a presidential election, you can expect a major mess that will make Bush v. Gore look mild in comparison.

Like the EC or not, it's always a bad idea to try to bypass the Constitution through local legislation.