Among those departing in the women's fourth round were Venus Williams and Indian Wells champion Bianca Andreescu. Williams lost to No2-seeded Simona Halep 6-3, 6-3, and Andreescu retired with a right shoulder injury while trailing Anett Kontaveit 6-1, 2-0.
Andreescu, who is tied for the WTA lead with 20 match victories this year, said she felt pain and tightness in the shoulder.
"I've played so many matches," the 18-year-old Canadian said. "I guess it's just my body's way of telling me it has had enough. The doctor said it's nothing too serious, but the pain is there."
Andreescu said she will skip the tournament next week in Charleston, South Carolina, but plans to play the Fed Cup on April 20-21.
She called a medical timeout after the first set to receive treatment, and received similar treatment during her third-round victory over Angelique Kerber, who afterwards told Andreescu she was the "biggest drama queen ever".
Andreescu defeated Kerber in the Indian Wells final on March 17 for her first career title. The injury ended Andreescu's bid to become the fourth woman to win Indian Wells and Miami back to back.
"I'm pretty upset," she said. "But I really can't complain, with what I've achieved."
Halep and Kontaveit were joined in the quarter-finals by Petra Kvitova, who faced only one break point and beat Caroline Garcia 6-3, 6-3. Kvitova, a two-time Wimbledon champion, is ranked a career-high No2 and will rise to No1 if she wins the title.
Kvitova's match was interrupted by rain for more than 90 minutes, and she took advantage.
"I had a quick nap, which was really helpful," she said.
Federer was only slightly delayed on his way to victory. Serving in the final game, he smacked aces on the first three points, and then hit another ace that skipped off the line to seal the victory — or so it was ruled.
While awaiting a replay review, Federer and Krajinovic walked to the net and discussed the call.
"He thought it was in," Federer said. "I'm thinking, 'Why did he think that?' It was quite clearly out."
Federer was correct, and when the call was overturned, he gave Krajin-ovic a wave as if to say, "See you in a minute." He needed only one more serve to complete the victory.
- AP