This feature provides a standard mechanism to indicate whether an element or its subtree should allow user agent handwriting input. User agents that support handwriting recognition as a means to input text using a pen/stylus will behave differently than a user agent that doesn't support handwriting. However, this handwriting may not be desirable for all supported input fields. By specifying the HTML handwriting attribute, authors can indicate when the user agent should not allow handwriting.
To disable handwriting input without this feature, developers would need to use preventDefault() on pen touch events, assuming that was an option for the user agent implementation of handwriting input. Android uses a non-standard `touch-action` configuration to disable handwriting input, this proposal will provide a standardized mechanism.
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
No milestones specified
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/000000000000faa1ae061e677989%40google.com.
cc+: fla...@chromium.org, pec...@chromium.org, mahe...@samsung.comWas wondering if you could share some background / motivation into why `touch-action` was selected for allowing/disallowing handwriting for Android Stylus Writing.
This attribute aims for a similar effect, providing developers a mechanism to allowing/disallowing handwriting, and could replace `touch-action` as a qualifier.
Thanks!On Tuesday, July 30, 2024 at 11:42:01 AM UTC-7 Adam Ettenberger wrote:Chose DOMString for a few reasons, primarily some technical differences between Boolean and Enumerated attributes.The intent is for this attribute to be opt-out, i.e., true by default and developers may specify when handwriting should not be available.Additionally this attribute will be inherited, so developers could specify handwriting="false" on the lowest common ancestor to affect a subtree of content.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/9521a161-75c9-4740-b936-b9e0b7655c97n%40chromium.org.