Somerset resumed on 120-6, only 142 ahead, but Trescothick and Wright continued their brilliant seventh-wicket partnership with a succession of boundaries in the morning session.
It was a similar tale in the second set: Federer vainly seeking inspiration against an opponent who continued to play solid, and occasionally brilliant, grass-court tennis.