Johan Djourou, the former Arsenal defender, replaced Schär, while Michael Lang came in for Lichtsteiner; he was then sent off for a foul on Martin Olsson in the dying minutes.
But after reviewing on VAR, the referee overturned his decision and instead awarded a free-kick on the edge of the box, with Ola Toivonen forcing a diving save from Yann Sommer in the dying seconds.
Switzerland were too slow and lacked emotion, coach Vladimir Petkovic said on Tuesday, after watching his side meekly surrender to Sweden in their round of 16 tie. "We had today good chances to go through and we didn't take the chance". But the goal made the difference for the Swede side who are yet to taste defeat since the start of the Russian Federation showpiece.
The Swedes were limited but played to the strengths that got them past Italy in the two-leg World Cup playoff and to the top of a group containing defending champion Germany, Mexico and South Korea.
Underestimate them at your peril. It wasn't particularly pretty, but they created the better chances throughout the match, with number 9 Marcus Berg once again profligate in front of goal.
They were organised and obdurate, playing with a discipline that allowed them to frustrate the Swiss and try to strike on the counter. At the St Petersburg Stadium, the Swiss were barely left them with an option to play their preferred way, thereby resorting to football's most basic method of chance creation - crossing.
All this after sustained pressure arriving from the Swiss who up at this point had been chomping at the bit of getting a solid footing on the contest.
It was an afternoon laced with regret for a Switzerland side that struggled to wear down their disciplined opponents. More important going forward, they finally managed to activate key player Forsberg around goal; fans and pundits alike will hope he can replicate his degree of influence in their next game, the biggest in Swedish football for over 20 years.
The match started with Switzerland taking the upper hand in the match. After holding Brazil to a 1-1 draw in their tournament opener, they edged past Serbia in a politically-charged game with goals from their superstars Granit Xhaka and Xherdan Shaqiri. That all improved after half-time, but the Swedes can't afford to give a similar break to the greater attacking quality of England or Colombia.
This was only Switzerland's fourth defeat in their last 15 matches at the last four World Cup tournaments, with three of those defeats coming by a 1-0 scoreline.
Sweden are through to the quarterfinals for the first time since 1994 after eliminating Switzerland with a 1-0 victory. With 12 minutes remaining, Francois Moubandje's header was blocked on the line by Forsberg and hacked clear by Andreas Granqvist, his captain. The delightfully impish RB Leipzig playmaker has resided on the periphery of matches, although this has had as much to do with Andersson's rigid tactical setup. "We didn't find any fluidity and we got stuck in the middle", he said. Penalty shootout? I am not thinking about it, but yesterday we saw two penalty shoutouts, so this can happen. "But in the end it wasn't enough".
"We've worked this way throughout, we're continuing the same way, and what other teams and countries think about that is not terribly interesting".
"We know that we're a good team, we've earned our successes".