Thanks SeanB. Based on what you said I looked up more on CMOS and went back to the datasheet. It says "The input and output voltage ratings may be exceeded if the input and output current ratings are observed." It was in small print below the electrical characteristics section. I did the calculation and it does stay within that limit so it now makes sense that it works.