#1018: [Handwriting] Add Handwriting CSS Value
Discussions
Comment by @jyasskin Nov 25, 2024 (See Github)
What's the adoption state here? I see enough Chrome interest to justify adopting this into the WICG, so ideally you'd have moved it there before filing this TAG review. But I also see discussion inside the Pointer Events WG: is it far enough along that the WG would support adopting it?
Comment by @gastonrod Nov 25, 2024 (See Github)
There is currently no code implemented for the feature. We are adding a use counter to try to measure how many webpages would be affected by the shipping of this proposal as-is, and I'm working on a prototype PR for chrome. The first proposal we created was to add an HTML tag to control the enablement of handwriting on elements, but we received some feedback on why using touch action could be a better way of (dis)abling handwriting. We are currently exploring both options and trying to get consensus on what the best mechanism would be to implement to control this feature, which is why I'm submitting the proposal for an early TAG review and will be shortly posting this issue to the editing and html working groups. A discussion is already ongoing on the pointer events WG.
Comment by @jyasskin Nov 26, 2024 (See Github)
Sorry, I meant the state of adoption by community and working groups. https://www.chromium.org/blink/launching-features/#start-incubating:~:text=incubation%20venue mentions proposing the work to an incubation venue before filing the TAG review.
Comment by @gastonrod Nov 27, 2024 (See Github)
I see, I know starting a TAG review this early isn’t what is recommended by the docs, but since this proposal will likely need input from multiple groups I was recommended to get TAG involved sooner as it could help steer us toward a better solution and catch any big architectural concerns early. Let me know if there are other considerations I should keep in mind, or if you'd prefer we shelf this until the discussion happens in the WGs.
Comment by @slightlyoff Dec 2, 2024 (See Github)
hey @jyasskin; I think the intent here is to get this into WICG or similar, but I've never understood our guidance in the Blink launch process to gate requesting TAG feedback on repo location, particularly for early reads.
Happy to work with you and @chrishtr to clarify on the Blink side.
@gastonrod: thanks for filing this. I think it's good advice to request moving to a more formal incubation venue, but hopefully that won't block this thread.
Discussed
Dec 16, 2024 (See Github)
Tess: We like early reviews, but this is very early.
Jeffrey: They've had discussions in Pointer Events, so it's not as early as the location of the explainer would imply.
Peter: Initial thought is "why?"
Jeffrey: Seems like handwriting and panning were getting confused for each other.
Peter: Might be a UA bug. If it takes text, the UA should accept handwriting, and it shouldn't be the author's problem.
Martin: pan-x + handwriting? Is that nonsense?
Jeffrey: Ask them those 2 questions?
Martin: If something is handwriting, is there an expectation that we draw the handwriting? If you want text input, use <input>
, and let the OS/browser deal with the input.
Tess: But sites do wacky things with contenteditable
, and I'm tired of yelling at clouds. It's easy in all-too-common shenanigans case to need to say that various regions accept scribbling and others don't. Bad that you end up there because of the compounding of other problems.
Peter: Not excited about supporting the above. Also bad that this proposes to monkeypatch CSS.
Martin: I'm less negative than my initial reaction. People shouldn't do this, but it's not MUST NOT. I don't know enough about touch-action to be able to say.
Tess: Default UA behavior should be good. On a boring HTML page with <input type=text>
or <textarea>
, handwriting should Just Work without confusing the page. But in the case where there's a disconnect between the thing that accepts input and the thing the user's manipulating, it seems like you need an escape hatch like this. Like in a synthesizer that just watches finger position.
Peter: Then you'd want a value that prevents handwriting, not a value that enables handwriting.
Tess: Not sure there's a use case for opting in.
Peter: How do you get everything but handwriting, including future stuff.
Martin: Think that's the intent of the touch-action
attribute anyway. Weird stuff in the MDN page. Can enable panning left but not right. Don't know why you'd want that. Weird restrictions. In most cases, this seems like the dumb thing to do. Think what the explainer says is that if handwriting is enabled, that's what happens. General shape of this proposal isn't terrible.
Tess: Not uniquely ugly; consistent with the rest of touch-action
's weirdness.
Martin: Needs to be clearer about how touch-action
interacts with other things.
Peter: And the UA stylesheet sets touch-action
on <input>
and <textarea>
?
Martin: Lots of mobile UI will open a box that you handwrite into.
Peter: And then you never handwrite into any element.
Martin: I think this is only for pages that really want to capture user input directly.
Peter: Maybe for when the control is big enough to capture handwriting.
Peter: I'd thought Pointer Events was specific to pen-type devices.
Martin: Nope, fingers are included.
Jeffrey: Should we ask them to talk to the CSSWG?
Tess: It's been a point of contention in the past, but yes.
satisfied
with:
Thanks for bring it to us. We've discussed the feature and it seems like -- while this is a niche sort of thing to want to do -- there are cases where this could be useful.
The design appears to be consistent with the design of touch-action. We do think that it would be better to clarify the interaction of `handwriting` with other actions that are available. In many cases, pointer devices (like fingers) are unable to distinguish between a writing and panning mode, so having `touch-action: pan-??? handwriting` doesn't make a lot of sense for those common devices.
We also encourage you to consult with the CSS working group on this.
Comment by @martinthomson Dec 17, 2024 (See Github)
Thanks for bring it to us. We've discussed the feature and it seems like -- while this is a niche sort of thing to want to do -- there are cases where this could be useful.
The design appears to be consistent with the design of touch-action. We do think that it would be better to clarify the interaction of handwriting
with other actions that are available. In many cases, pointer devices (like fingers) are unable to distinguish between a writing and panning mode, so having touch-action: pan-??? handwriting
doesn't make a lot of sense for those common devices.
We also encourage you to consult with the CSS working group on this, following our design principle.
OpenedNov 25, 2024
こんにちは TAG-さん!
I'm requesting an early TAG design review of the
handwriting
keyword for thetouch-action
CSS attribute.This feature introduces a new web standard that simplifies enabling or disabling handwriting input across multiple platforms. By specifying a new keyword in the touch-action CSS property, developers can now easily indicate whether an element or its subtree should allow handwriting input.
Further details:
You should also know that...
Feedback from many working groups will likely be required to achieve consensus on the shipping of this feature, as it may affect pointer events, CSS and HTML.