A man walked into a Costa Mesa nail salon about noon Sunday, doused himself in flammable liquid and set himself on fire, police said.

A woman from whom the man had been estranged, either his wife or his girlfriend, was inside the salon at the time, according to a Costa Mesa police spokesman.

Someone grabbed a fire extinguisher and doused the flames and the man was rushed to a nearby hospital, police said.

The man was not immediately identified by authorities, and there was no word on his condition Sunday evening.

The salon, Creative Nails & Spa, reportedly sustained minor fire damage.