Window Controls Overlay + window-drag
This demo shows how to use Window Controls Overlay (WCO) to render a
custom titlebar in a PWA, and how to define draggable regions using the
window-drag CSS property (the new standard name for app-region).
Test 1: app-region: drag
checking…
This element uses the legacy -webkit-app-region: drag /
app-region: drag properties. Try dragging the window from the region below.
Test 2: window-drag: move
checking…
This element uses the new window-drag: move property. Try dragging the window
from the region below.
Test 3: Inheritance — Child Within Parent Bounds
The parent div has app-region: drag. The child div does not
set app-region and is fully contained within the parent. Without inheritance,
clicking the child still drags because the child is within the parent's draggable layout region.
With inheritance, the child would explicitly inherit app-region: drag.
Test 4: Inheritance — Child Overflows Outside Parent
Same setup as Test 3, but the child div overflows outside the parent's bounds.
Without inheritance, the overflowed portion of the child (outside the parent) should
not be draggable. With inheritance enabled, the entire child — including
the overflowed area — should be draggable because it inherits app-region: drag.
Feature Detection Results
CSS property support detected in this browser: