Re: [csswg-drafts] Standardizing `app-region` for draggable app windows (#7017)

Let's give this a try. The behaviour of the `app-region` CSS property is to allow to drag (or not) a window from the element that sets the property. Hence, if a DOM element has this property set to `drag`, let's say, a `div` for example, the user can click/tap and move the window around, but at the same time if an element inside this `div` has the `app-region:no-drag` (for instance, a textbox or other form control) no dragging can occur over it. 

The property's `app-region` 2 possible values are: `drag` and `no-drag`.

This (through the `-webkit-app-region` existing property) already works as described and is used in electron. As an example, you can refer to [this documentation](https://www.electronjs.org/docs/latest/api/frameless-window#draggable-region).

What we'd like is to remove the `webkit` prefix and start the standardization process for `app-region` to be able to define regions in the window of an installed web application where the user can drag to reposition a window.


-- 
GitHub Notification of comment by diekus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7017#issuecomment-1049828728 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 24 February 2022 12:52:27 UTC