When overflow:auto (or overflow:scroll) is applied to element, and content within the affected element triggers horizontal overflow due to width value, max-height behaves like height

Credit to EricWatson for spotting this one

The box below should be roughly 35px high

TextTextTextTextTextTextTextTextTextText