The short answer: a "restore down" window isn't an HTML feature at all; it's the browser's own window control. What you can make scrollable is the HTML inside a popup you open, typically with window.open(), or an in-page panel styled to look like a restored window. In both cases the fix is the same principle: give the scrolling container a definite height (or max-height), set overflow-y: auto, and keep the content from forcing the container wider than you want. The window's restore-down state itself is controlled by the operating system and browser, not by CSS or JavaScript.
That distinction matters because search results for this question often blur two very different problems. One is a real popup window that has been "restored down" from maximized, where the page inside doesn't fit. The other is a modal or dialog inside the page that acts like a small window and needs its own scrollbar. The techniques overlap, but the entry points differ, so it helps to know which one you're actually debugging before you touch any code.
What "Restore Down" Actually Refers To in a Browser
In Windows and most desktop environments, every window has three states: normal (floating at some size), minimized, and maximized. The middle button at the top right of a browser window toggles between maximize and restore down. On macOS the equivalent is the green zoom button, which behaves differently but serves a similar purpose. When a window is restored down, it occupies only part of the screen, and the page inside must render inside that smaller viewport.
Crucially, a web page cannot call a method to put the browser window into restore-down mode. There's no standard API for resizing the top-level browser window from script. Some older or vendor-specific approaches exist, and a popup opened with window.open() can specify a size, but the actual window chrome and its maximize/restore behavior belong to the user and the OS. So when someone asks how to make "the restore down HTML scrollable," the workable interpretation is almost always one of these:
A popup window opened with window.open() and given fixed dimensions, whose inner document overflows and needs a scrollbar. A page displayed inside an iframe or a webview that's been resized smaller, where the content needs to scroll rather than clip. A simulated window UI built with HTML and CSS, complete with a fake title bar and a content region that should scroll.
Each has a distinct fix, and mixing them up is the most common reason a scrollbar never appears.
Prerequisites Before You Change Any CSS
Before writing overflow: auto, confirm four things, because a missing scrollbar is usually a layout problem rather than a CSS property problem.
First, identify the actual scrolling element. In a normal page it's the root element, and you style it through html or body. Inside a popup or iframe it's still the root of that document, so the CSS must be loaded in the popup's own document, not only the opener. Inside a modal or panel it's whatever div you designate, so that element needs the overflow rule and a height.
Second, check whether the content is genuinely overflowing or merely being clipped. A container with overflow: hidden will silently cut off content and never show a scrollbar. Inspect the element in your browser's developer tools and look for content extending beyond the box.
Third, verify the container has a resolvable height. Percentage heights only work when the parent chain has a definite height all the way up. A div with height: 100% inside a parent with height: auto computes to auto and grows with its content, so it never scrolls.
Fourth, in a popup scenario, confirm the popup document has a viewport you can reason about. A window opened with width=600,height=400 gives you roughly that content area minus browser chrome, and 100vh inside it refers to that inner height.
The Core CSS Pattern for a Scrollable Region
The reliable pattern for any scrollable box is a constrained height plus vertical overflow. A minimal version for a simulated restored window looks like this:
The important lines are max-height on the outer window, overflow-y: auto on the body, and min-height: 0 on the flex child. That last property is easy to miss and is the single most common reason a scrollbar fails to appear inside a flex column. By default a flex item has min-height: auto, which means it refuses to shrink below its content size. The container grows past your max-height, the parent clips or the page scrolls instead, and your inner scrollbar never materializes. Setting min-height: 0 lets the child actually become smaller than its content so the overflow can take effect.
Use overflow-y: auto rather than overflow-y: scroll when you want the scrollbar to appear only when needed. scroll reserves the scrollbar track at all times, which shifts layout and looks odd in small restored windows. Reserve overflow-y: hidden for cases where you're deliberately preventing scroll, and avoid pairing it with content you expect users to reach.
Making a window.open() Popup Scroll Correctly
If your restored-down window is a real popup created with window.open(), the fix happens in the popup's own document. Say you open it like this:
Here's how to make its content scroll rather than clip:
1: In details.html, include a stylesheet or