The hand-to-hand political combat in House elections on Tuesday in Georgia and last week in Kansas had the feel of the first rounds of an epic battle next year for control of the House of Representatives and the direction of national politics as the Trump presidency unfolds.

But for all the zeal on the ground, none of it may matter as much as a case heading to the Supreme Court, one that could transform political maps from City Hall to Congress — often to Democrats’ benefit.

A bipartisan group of voting rights advocates says the lower house of the Wisconsin Legislature, the State Assembly, was gerrymandered by its Republican majority before the 2012 election — so artfully, in fact, that Democrats won a third fewer Assembly seats than Republicans despite prevailing in the popular vote. In November, in a 2-to-1 ruling, a panel of federal judges agreed.

Now the Wisconsin case is headed to a Supreme Court that has repeatedly said that extreme partisan gerrymanders are unconstitutional, but has never found a way to decide which ones cross the line.