Keith Butterfield, Yacht and Marine Surveyor. Costa del Sol, Spain.
Stainless steel will be from the 300 series and has to be installed and maintained correctly. Type 304 is a good, basic, multipurpose-type; add a bit more nickel content and molybdenum and you get types 316 and 316L, both have improved resistance to corrosion. Type 316L has a lower carbon content to prevent carbide precipitation (and intergranular corrosion) when welded.
“Stainless” all have a self-generated protective coating that helps prevent corrosion. The chromium used in the steel combines with oxygen to form an invisible layer of chromium oxide, which protects and prevents staining and corrosion from penetrating into the steel.
This inert, protective film is also self-repairing as long as sufficient oxygen is present, and this is the nub of the problem. Stainless steel is prone to corrosion (and thus staining) when installed in an anaerobic (no oxygen) environment, a situation where chlorides found in seawater can attack and destroy this protective coating faster than it can repair itself. A perfect example of this would be the failure of a stainless steel chain plate at the point where it transitions the deck. Such failures often occur even though the chain plate may look pristine above and below the deck penetration.