W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

Re: Should minimal contentEditable default text input

From: Robin Berjon <robin@w3.org>
Date: Mon, 26 May 2014 10:45:16 +0200
Message-ID: <5382FF1C.1010508@w3.org>
To: Anne van Kesteren <annevk@annevk.nl>, Yoshifumi Inoue <yosin@chromium.org>
CC: Piotr KoszuliƄski <p.koszulinski@cksource.com>, Jonas Sicking <jonas@sicking.cc>, Ben Peters <Ben.Peters@microsoft.com>, "public-webapps@w3.org" <public-webapps@w3.org>
On 26/05/2014 10:25 , Anne van Kesteren wrote:
> On Mon, May 26, 2014 at 4:17 AM, Yoshifumi Inoue <yosin@chromium.org> wrote:
>> Range.style is cool idea! I assume Range.detach() removes styles added
>> Range.style.
>
> detach() is a no-op. http://dom.spec.whatwg.org/#dom-range-detach

You're jumping in without context. In talking about Range.style you need 
a way of clearing that style once attached. Range.detach() was suggested 
as a possible candidate there

>> 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.

So, since Gecko supports that, do you know how it's done?

-- 
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Monday, 26 May 2014 08:45:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:24 UTC