window-drag
Limited availability21% of usersExperimental
Marks part of an installed web app as a handle for moving its window, like a title bar. move turns it on and the default, none, leaves it off. While someone drags there, the page gets no pointer, mouse or drag events from it. The value is inherited, so give buttons inside the bar window-drag: none. It works in Chrome and Edge 152 and later on desktop so far.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- Yes
- Applies to
- all elements
- Animation type
- discrete
Quick example
.app-titlebar {
window-drag: move;
}
.app-titlebar button {
window-drag: none;
}Values
nonemovewindow-drag browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage21%of people can use this79% use a browser without it.
Browsers
152+
152+