Support max-width/max-height