Bug 52025
Summary: | Unsupport -webkit-user-modify CSS property | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | HTML Editing | Assignee: | Nobody <webkit-unassigned> |
Status: | REOPENED | ||
Severity: | Enhancement | CC: | cshu, darin, efidler, enrica, hyatt, justin.garcia, mifenton, mjs, shinyak, simon.fraser, tonikitoo, tony, zcorpan |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All |
Ryosuke Niwa
Per discussion on the bug 50636, we should get rid of -webkit-user-modify property. Editability can instead be solely determined by the DOM property.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Darin Adler
Hyatt, I think you suggested this long ago. What do you think it would take to do this successfully?
Chang Shu
Any updates? :)
Ryosuke Niwa
I've seen examples of websites that rely on this feature so we can't drop this feature anytime soon.
Ryosuke Niwa
Revisiting this bug because it's causing a lot of problems in relation to UndoManager / Transaction spec.
Ryosuke Niwa
I had a discussion with Enrica, Ojan, & Tony about this, and I think we want to get some statistics on how many websites use this property. In addition, I've asked Enrica to check if there are any significant users of this property in Apple products and OS X apps.
It'd be great to deprecate this property in the future.
Simon Pieters (:zcorpan)
I think this Chrome use counter is relevant:
WebKitUserModifyEffective 0.63% https://chromestatus.com/metrics/feature/timeline/popularity/2630
However, as far as I can tell from the code in https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/dom/element.cc;l=274?q=webkitusermodifyeffective&ss=chromium&start=31 this includes usage of the contenteditable attribute.
wpt test that checks that -webkit-user-modify is not supported was added in https://github.com/web-platform-tests/wpt/pull/35471
In addition, the following spec PRs specify the HTML contenteditable="plaintext-only" which is supported in WebKit and Chromium:
https://github.com/whatwg/html/pull/8275
https://github.com/w3c/editing/pull/407