#24 support for container's max-width and max-height