The ability of a polymer to resist attack or degradation by chemicals, including solvents, acids, and bases.