Sri Lanka, bolstered by a classy century from Angelo Mathews, were all out for 302 Sunday leaving New Zealand a target of 285 with just over a day remaining in the first Test.

Mathews produced a near-chanceless 115 in Christchurch to keep them in contention to play Australia in the World Test Championship final.

However, forecast rain on the morning of the final day could yet dictate the outcome as a draw would not help the Sri Lankan cause.

To qualify, they must sweep the two-Test series and have Australia either win or draw their current fourth Test against India.

For New Zealand. Blair Tickner took four for 100 while Matt Henry finished with three for 71.