--
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+unsubscribe@chromium.org.
Hi,
I'm the editor of the spec user-modify would go into if it were standardized (CSS-UI Level 4).
I'm supportive of deprecating this, and of trying eventually to get rid of it entirely (and if we fail, eventually we'll have to standardize it despite the original unwillingness to do so).
However, before removal can happen, there are some subtle behavior differences in Chrome's implementation that make -webkit-user-modify desirable over contenteditable in some cases. Dealing with that seems like it would help both with the deprecation and the possible eventual removal.
Here's one difference I am aware of and which I plan to report soon: http://jsbin.com/vuladoz/edit?html,css,output
On Wednesday, February 1, 2017 at 5:58:06 PM UTC+9, fri...@gmail.com wrote:However, before removal can happen, there are some subtle behavior differences in Chrome's implementation that make -webkit-user-modify desirable over contenteditable in some cases. Dealing with that seems like it would help both with the deprecation and the possible eventual removal.
Here's one difference I am aware of and which I plan to report soon: http://jsbin.com/vuladoz/edit?html,css,outputThis should be a bug. I haven't investigated much, but guess it has the same root cause as crbug.com/583631, since pasting and drap&drop share a lot of code.Anyway, this is a blocking issue and should be fixed.
Though it is not a complete replacement. For example, it was used to avoid typing issues in the Android browser of Android 2.3 (Gingerbread) in transformed/transitioned fields by using the read-write-plaintext-only value.I realize it was a workaround that should not affect current browsers and systems, but the point is that it is not a boolean property like contenteditable sort of is. Does contenteditable has a plain text value?
Example -data:text/html,<!doctype html>Plaint text only -<div style="-webkit-user-modify: read-write-plaintext-only;border: 1px solid black"></div>Formatted content -<div style="-webkit-user-modify: read-write;border: 1px solid black"></div>Copy the content of this e-mail or page into the first box and then to the second box and you will see the difference.I suggest that before the deprecation (due to the current very high usage), you will count the usage per scenario. Example -read-write-plaintext-only on a form control (which means it is already in plain text only mode) will be counted separately (and can probably be removed anyway, since it does nothing except maybe changing the computed style).read-only on non readonly/disabled form controls (this does change things, I believe).And read-write (and friends) on elements without contenteditable (neither HTML and IDL or on their ancestors). Those will have a significant effect.Same goes for elements with contenteditable (in HTML or IDL or on their ancestor) and read-only value.
Also, does the user-agent-stylesheet originated use (as a result of having contenteditable on an element) participate in this use counter?
Having frequent warnings will just be spam, so the usage must be isolated to cases where it actually affects something first and reported mostly for those cases.
You received this message because you are subscribed to a topic in the Google Groups "blink-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/blink-dev/8gZ2qhCOAoc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blink-dev+...@chromium.org.
To unsubscribe from this group and all its topics, send an email to blink-dev+unsubscribe@chromium.org.
I looked at the Edge history for this feature and some more data on declared values: https://developer.microsoft.com/en-us/microsoft-edge/platform/usage/css/-webkit-user-modify/
The exact issue we fixed (in May 2015 during large WebKit interop effort) by adding this property was the following:
The root cause is that anjuke.com uses a <div> with flag -webkit-user-modify:read-write-plaintext-only to implement the search box where in the <div>'s focus event handler, it displays the search page. In IE the webkit-user-modify flag is not supported, so the <div> is not editable, so there is no focus event, hence no response after clicking the search box.
Some further observations:
What’s more interesting is that I found evidence of original implementation creating more problems, than it solved :-). I could find about 10 issues duped to the master bug “Don't allow user-modify styles to propagate through component boundary to match Chrome”.
Basically in the following repro - http://jsfiddle.net/boggydigital/d04n30c4/ we were propagating -webkit-user-modify to intrinsic control contents. For completeness here are the bugs that were resolved by further matching Chrome:
I get the feeling we wouldn’t get those bugs if we didn’t implement -webkit-user-modify the way we did or never supported it, so personally I’d say supporting it was net negative for us.
Generally we would be happy to help do some more data analysis on our end. From the platform perspective it doesn’t seem like the right solution – so we would be happy to coordinate any change here.
I’m adding Grisha, who is our resident editing expert who should be able to help further!
☆PhistucK
Thanks for your comments!
☆PhistucK
☆PhistucK
☆PhistucK
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
--
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.
--
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.
--
You received this message because you are subscribed to a topic in the Google Groups "blink-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/blink-dev/8gZ2qhCOAoc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to blink-dev+...@chromium.org.
--
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.
--
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.
On Feb 4, 2017, at 01:42, PhistucK <phis...@gmail.com> wrote:While Mozilla may not have -webkit-user-modify (I have not checked), they do have -moz-user-modify, so they may have their own problems here. :((It does not have the plaintext thingies, though)
html.fsrMobileCompat input {-webkit-user-modify: read-write-plaintext-only!important;margin: 0!important;padding: 0!important}
Thanks a lot for the list!Guess we want to measure the valid usage, i.e., if the property is applied, in a non-inherited way, to an element:- without contenteditable attribute- not <input> or <textarea>We (editing-dev@) will try to find a clean way to instrument this counter.
Something that can be done simultaneously is, we should contact site developers to stop using this property. Hope the counter is going to drop after some top sites stop using it.
On Mon, Apr 17, 2017 at 7:20 PM, Xiaocheng Hu <xiaoc...@chromium.org> wrote:Thanks a lot for the list!Guess we want to measure the valid usage, i.e., if the property is applied, in a non-inherited way, to an element:- without contenteditable attribute- not <input> or <textarea>We (editing-dev@) will try to find a clean way to instrument this counter.Sounds great, thanks!Something that can be done simultaneously is, we should contact site developers to stop using this property. Hope the counter is going to drop after some top sites stop using it.If you can find some sites which are really depending on it (i.e. break when it's removed) then yes I agree trying to contact them (or better, the owners of any libraries) is worthwhile. Though in practice, for all but the biggest sites, we tend not to have much success with doing this. It's almost certainly a waste of time to reach out to sites on my list which aren't obviously broken by removing it (eg. they may actually still want the workaround for old Android browser users).