Striker Melissa Tancredi claimed a double as Canada came from behind to snatch a precious Group F draw with Sweden.
John Herdman's side trailed 2-0 to goals from Marie Hammarstrom and Sofia Jakobsson as the Swedes got off to a flying start.
But Tancredi reduced the deficit before the break and then claimed a later equaliser to ensure that both teams go through to the quarter-finals.
Sweden looked to have wrapped up the victory inside the opening 16 minutes with a devastating salvo.
Hammarstrom put them in front from Lina Nilsson's right-wing cross with just 14 minutes played, and then supplied the ammunition from the opposite flank to allow Jakobsson to double their advantage.
But Canada refused to throw in the towel and although the Swedes looked capable of adding to their tally, got themselves back into the game two minutes before half-time when Rhian Wilkinson played a one-two with skipper Christine Sinclair down the right and floated a cross to the far post for Tancredi to fire home her third goal of the tournament.
It took brave blocks by keeper Hedvig Lindahl and Nilsson to deny Tancredi and then Jonelle Filigno a 48th-minute equaliser, but Tancredi squared it seven minutes from time with a header from Sinclair's cross.