2 ms·
It shouldn't necessarily prevent scrolling; but I'd expect scrolling the page behind the modal to keep the modal where it is in the viewport. That is, after all
by derefr 4y ago
It shouldn't necessarily prevent scrolling; but I'd expect scrolling the page behind the modal to keep the modal where it is in the viewport. That is, after all, how native modal dialog windows work.
- samsin 4y agoThat still wouldn't solve the situation GP described where the <dialog> element has a height greater than 100vh.