- From: Alex Reardon via GitHub <sysbot+gh@w3.org>
- Date: Fri, 09 May 2025 22:56:05 +0000
- To: public-css-archive@w3.org
alexreardon has just created a new issue for https://github.com/w3c/csswg-drafts: == Proposal: touch-callout == There is currently a Webkit only CSS property called [`-webkit-touch-callout`](https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-touch-callout) which allows you to disable platform specific context menus when holding a touch target. ### One use case: platform drag and drop A long press on an anchor element (`<a>`) on a touch device will result in a context menu being shown (eg "open in new tab"). `-webkit-touch-callout` allows you to opt out of this behaviour. Opting out of touch target behaviours is particular useful for platform powered drag and drop. Without `-webkit-touch-callout:none` on iOS, you cannot start a drag operation of an anchor without first seeing a link context menu. This issue was brought to my attention due to a recent [bug I raised for Chrome + Android](https://issues.chromium.org/issues/416539423), where there is currently no mechanism to opt out of touch callouts ### Proposal - I propose that the CSS specification adopts `-webkit-touch-callout` as the standard property `touch-callout`. - I also propose that `touch-callout` match the [specification as found on MDN for `-webkit-touch-callout`](https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-touch-callout) (and the [Safari CSS reference](https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/doc/uid/TP30001266-_webkit_touch_callout)) Thank you for your consideration Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12178 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 9 May 2025 22:56:06 UTC