The goal should have ended a compelling game at the Toronto Stadium but it launched a high-voltage climax in which Josko Gvardiol's equaliser was ruled out for offisde following a review by the video assistant referees.
The frenzied finale contrasted with a sedate first-half.
Following the pause, a more vigorous Croatia emerged.
And the veteran striker Ivan Perisic gave them the lead their dominance deserved.
Ronaldo's first goal in knockout stages
But they threw away that advantage 15 minutes later. Nikola Vlasic dragged Portugal defender Renato Veiga down in the penalty area as he tried to compete for the ball from a corner kick.
Referee Espen Eskas consulted the video monitors at the side of the pitch and awarded a penalty.
Wissa the wizard as DRC conjure up first trip to World Cup knockout stages
Portugal skipper Cristiano Ronaldo stepped up and rammed the ball past the goalkeeper Dominik Livaković to register his first goal in a knockout round at a World Cup.
Ramos, who will turn out for AC Milan at the start of next season after three years at Paris Saint-Germain, took the plaudits.
On Monday in Dallas, Portugal will take on Spain who swept past Austria 3-0 in Los Angeles on Thursday. Mikel Oyarzabal scored twice and Pedro Porro got the other goal.


It's alarming how SHS students have the courage to sell marijuana on campus; let...
Mahama charges new Auditor-General to be bold, fair and independent
Dr. Pamela Graham sworn in as Ghana’s first female Auditor-General
Government appoints Brig. Gen. Okae-Yeboah to lead nationwide flood mitigation t...
South African Police link killing of Ghanaian national in Cape Town to extortion...
GMet forecasts moderate rainfall over the weekend
Gov't to build 10 new SHSs, rehabilitate 150 existing ones — Haruna Iddrisu
GH¢100m allocated annually for special needs education — Haruna Iddrisu
Dada Joe Remix pleads guilty in US Court to multi-million-dollar romance fraud