HARRISBURG — Pennsylvania’s highest court said Tuesday that it will take up another election-related lawsuit, this one filed by the state Democratic Party amid a partisan fight over fixing glitches and gray areas in the battleground state’s fledgling mail-voting law.

Briefs are due next Tuesday, the state Supreme Court said.

The Democratic Party’s lawsuit asks the court to order an extension of Pennsylvania’s Election Day deadline to count mailed ballots, a request similar to one in a lawsuit already taken up by the court.

It also asks the court to allow mailed ballots to be counted if they are returned without a secrecy envelope, to allow voters to fix problems with their mail ballot instead of having to discard it, and to uphold the requirement that poll watchers be registered voters from the county.

In addition, it asks the court to allow the use of drop boxes — which Philadelphia and its heavily populated suburbs used in the primary to help relieve the pressure from an avalanche of mailed ballots — as well as satellite election offices.

Philadelphia and its surrounding counties are planning to use satellite election offices and drop boxes in the Nov. 3 presidential election.

Gov. Tom Wolf, a Democrat, and the Republican-controlled legislature are at a stalemate over some of the issues, just two months before the election and barely two weeks before counties can begin sending ballots to voters.

To a great extent, they are clashing over how to prevent vast numbers of ballots from being discarded and how to head off the specter of a presidential election result hanging in limbo on a drawn-out vote count in Pennsylvania.

The lawsuit was filed last month by the party and had been pending in a lower court. The defendant, Wolf’s top election official, asked the high court last month to take over the case.

In many ways, the suit is asking state courts to rule the opposite of what President Donald Trump’s campaign and the national Republican Party are seeking in federal court in Pittsburgh. That case is in front of a federal judge appointed by Trump.

Trump’s campaign and the national Republican Party opposed the Wolf administration’s move to get the Democratic Party’s case in front of the state Supreme Court, calling it in a court filing “nothing less than a transparent attempt to shop for a favorable forum.”

Trump’s campaign and the national GOP also said the request exceeds the court’s authority to grant and would risk invalidating Pennsylvania’s 10-month-old law that allowed every voter to vote by mail, not just those who met a narrow set of requirements in the state constitution.

The state Supreme Court has a 5-2 Democratic majority. In Tuesday’s decision, the two Republicans on the court dissented.

The Trump campaign’s lawsuit in federal court is halted until Oct. 5 under an order issued last week.

However, Trump’s campaign has asked the judge to change that date to Sept. 14 and, while the case is pending, to prevent Pennsylvania election officials from counting certain mail ballots, including those that are returned through drop boxes or without a secrecy envelope.

In 2016, Trump won Pennsylvania by 44,000 votes, or less than 1 percentage point, but he lost badly in the state’s most heavily populated counties, which are the ones largely planning to use drop boxes to help collect mail ballots.