Postpublished at 21:35 British Summer Time 27 July 2017
FT: Scotland 1-0 Spain
Scotland fall desperately short of the two-goal victory they needed to reach the knockout stages.
There are some crestfallen figures out there.
Spain are jubilant.
Results: Portugal 1-2 England, Scotland 1-0 Spain
England and Spain qualify for quarter-finals
One more Scotland goal would have sent them through
Duggan & Parris with early goals in either half for England
Weir earned Scots impressive victory
Tom Garry and Patrick Jennings
FT: Scotland 1-0 Spain
Scotland fall desperately short of the two-goal victory they needed to reach the knockout stages.
There are some crestfallen figures out there.
Spain are jubilant.
Portugal 1-2 England
It's all over. Portugal go out, with Scotland. Spain go through.
Scotland 1-0 Spain
They came so close.
The end for Scotland and manager Anna Signeul is bittersweet.
Scotland 1-0 Spain
Spain clear. Gemma Fay stays on her line. Is there still time?..
Portugal 1-2 England
England are around 90 seconds away from earning their third win from three games.
From a Scotland point of view, England are doing their part of the equation.
Scotland 1-0 Spain
Deep free-kick. One last chance for Scotland.
Hit. IT. LONG. Where's the keeper?
Scotland 1-0 Spain
Spain play it fast and tight, Scotland desperately chasing after shadows.
Are they running out of gas as well as time?
Scotland 1-0 Spain
Still Spain with all of the ball. Scotland just can't get hold of it.
There will be TWO minutes added on.
Scotland need ONE GOAL to go through. Huge moments.
Scotland 1-0 Spain
Spain corner. Scotland breathe deep.
Marta Corredera flashes one in, all the way across goal, no touch on it.
A throw-in on the far side, when Scotland need to get it down and counter, as quick as they can.
Time is running out...
Scotland 1-0 Spain
Fantastic block from Ifeoma Dieke, last-ditch stuff as Spain overloaded, four against three on the counter.
If she hadn't stopped that pass there would have been three Spanish shirts queuing up to striker at goal.
TWO to go...
Portugal 1-2 England
Portugal, heading out of the tournament as it stands, make their final change. Laura Luis replaces Diana Silva, who had played well.
Scotland 1-0 Spain
Another Scotland free-kick. Good position, out wide stage left.
Caroline Weir whips it in to the back stick... but the Scotland shirts are crowded out. Goal kick as the ball sails harmlessly over the bar.
THREE minutes for Scotland to find their goal.
Portugal 1-2 England
A crowd of 3,335 is announced in Tilburg. There have been far bigger attendances at these Championships, that's for sure.
All the drama now is surely happening in the Scotland game. England appear to be in control of things at their end.
Scotland 1-0 Spain
Julie Fleeting
Former Scotland striker on BBC Sportsound
it is end to end stuff at the moment, I can barely watch. Scotland looking very positive when they're going forward, they're attacking in numbers, but as are Spain.
Scotland 1-0 Spain
FIVE to go.
A booming Scotland free-kick from deep, into the box, is expertly claimed by the Spain goalkeeper Sandra Panos.
Scotland 1-0 Spain
Scotland need to gather and make their next counter count.
They are still having to dig deep to stop the Spanish, wave after wave of dangerous flow.
Maria Paz shanks another shot desperately wide. She has missed a hundred chances now.
Portugal 1-2 England
England remain the clear group winners as it stands. They're on course to go through with nine points from a possible nine.
That would mean a box-office quarter-final against France on Sunday.
Scotland 1-0 Spain
EIGHT minutes to go.
As is stands Scotland are heading out. They need ONE more goal.
Portugal 1-2 England
Wing-back Demi Stokes comes on for England and striker Toni Duggan - who scored the opener - goes off.
That might mean 4-4-2. Stokes goes to left midfield, by the looks of it.
Scotland 1-0 Spain
Ifeoma Dieke clears the ball off the line! Maria Paz nodded the rebound from another fantastic Gemma Fay save - who stopped a diving header from Alexia Putellas - but is denied!
Scotland still in it. Just...