Sri Lanka's batting struggles continued against India on day three, but Sonal Dinusha's unbeaten 85 gave the hosts something to cling to as they closed on 265 for eight.

Still 238 runs behind India's 503 for nine declared, Sri Lanka were in serious trouble at the close, with only Lahiru Kumara alongside Dinusha and the new ball just beginning to come into play before rain and bad light ended proceedings early.

Dinusha's resistance stood out in an innings where discipline was often in short supply.

His fifty was his third of the series and he was one of only five Sri Lankan batters to face at least 50 deliveries. Two of the others were recognised tailenders in Kumara and Keshara Nuwantha.

Sonal Dinusha provides Sri Lanka with crucial resistance

Sri Lanka did have periods when their batters appeared comfortable, particularly during the 87-run fourth-wicket partnership between Pasindu Sooriyabandara and Kamindu Mendis.

Both settled well after India had made an aggressive start through Prasidh Krishna, with Sooriyabandara particularly effective using the depth of his crease, cutting late and sweeping India's spinners.

Kamindu looked equally assured before pulling Krishna straight to midwicket, despite plenty of space around the fielder.

Dhananjaya de Silva followed after lunch, edging Manav Suthar while attempting to defend a delivery that found the outside edge.

Sooriyabandara then chopped Ravindra Jadeja onto his stumps for 80, ending a promising innings after a 62-ball partnership with Dinusha.

The dismissal triggered another collapse.

Niroshan Dickwella fell for a three-ball duck before Keshara briefly gave Dinusha valuable support, the pair adding 57 from 137 deliveries.

Sri Lanka continue to undo themselves

Keshara's dismissal summed up Sri Lanka's problems.

After hitting Saransh Jain for six earlier in the innings, he advanced again against Suthar and attempted another aggressive shot, only to pick out mid-on.

It left Dinusha with another partner to protect.

Kumara has so far provided that support, surviving for 50 balls to make eight not out.

But Sri Lanka's task remains enormous. India have already posted 503 for nine declared, while the hosts have lost eight wickets and remain well behind.

For now, Dinusha's patience is keeping them alive. How long he can continue that resistance will determine whether Sri Lanka can at least force India to work for victory on the fourth day.