Taylor and Williamson added 262 runs for the third wicket before Sri Lanka’s bowlers clawed their way back into the game.