Re: Should minimal contentEditable default text input (was: contentEditable=minimal)

On May 26, 2014, at 1:25 AM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Mon, May 26, 2014 at 4:17 AM, Yoshifumi Inoue <yosin@chromium.org> wrote:
>> To implement text composition with this, I would like to have "wave
>> underline", "dotted underline", "thick underline" etc.
> 
> Range.prototype.style seems complex in the context of overlapping
> ranges and such. Suddenly you're no longer applying CSS to a tree.

Yeah, especially if we allow text layout to be affected by this, e.g. bolding, font size.  That would require some fundamental changes to our engine (WebKit).

We can probably add the ability to style text without affecting layout though; e.g. background color, underline.

- R. Niwa

Received on Friday, 6 June 2014 17:00:28 UTC