There is a form of communication - a modal window in which textarea is located. It is necessary that when resiz'e it was possible to stretch the textarea to a height greater than the container, and scrolling appeared at the container itself.
form { width: 540px; max-height: 700px; max-width: 100%; position: fixed; top: 0; bottom: 0; left: 0; right: 0; margin: auto; z-index: 1900; background-color: gray; padding: 25px; display: flex; flex-direction: column; overflow-y: auto; } textarea { resize:vertical; } <form action=""> <input type="text"> <textarea></textarea> <input type="text"> </form> In this example, you can stretch the input field to the full height, but not more. If suspicion that this is due to display: flex . Enlighten please