Re: [css-text] Should contenteditable word-wrap: break by default

On Thursday, October 23, 2014, Greg Whitworth <gwhit@microsoft.com> wrote:

>  We have an interop issue that was submitted to us as a bug and it
> concerns contenteditable. Currently Chrome currently adds the following
> props by default to any element that has a contenteditable:
>
>      word-wrap: break-word
>
>      -webkit-line-break: after-white-space
>
>
>
> Firefox/IE currently render the same by adding scroll bars if the length
> of the content overflows the input (assuming overflow: auto|scroll) if
> there are no spaces inserted into the editable div, if there are spaces all
> browsers render the same.
>

I think the FF/IE behavior is preferred and that Chrome/Safari should
remove the magic behavior. The less magic the better, especially
considering Gecko and Trident already agree.

>
>
> Here is a fiddle: http://jsfiddle.net/pfe9mj4o/1/ (just type in the input
> without spaces)
>
>
>
> I am not passionate on this one way or the other, but would just like to
> get the opinion of the group to determine if FF/IE should change to match
> Chrome or vice-versa.
>
>
>
> Thanks,
>
> Greg
>


-- 
Mike Sherov

Received on Saturday, 25 October 2014 02:46:05 UTC