W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2012

Re: [shadow-dom] text-decoration

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 27 Dec 2012 19:55:57 -0800
Message-ID: <CAAWBYDByQ06+v_RFajpOLhSnQBLLfoh4-o-3FOZQc=_+9=L=Sg@mail.gmail.com>
To: "Jens O. Meiert" <jens@meiert.com>
Cc: public-webapps <public-webapps@w3.org>
On Dec 26, 2012 10:11 PM, "Jens O. Meiert" <jens@meiert.com> wrote:
>
> Hi Dimitri,
>
> the draft is very brief on this: why must text-decoration not be
> propagated to shadow trees [1]?

The draft is clear about this, but its not obvious if you don't know the
minutia of how text-decoration works: what the spec actually says is that
text decorations don't propagate, not that text-decoration doesn't.

The decorations produced by text-decoration propagate separately from the
property, in a somewhat unique way. You don't necessarily want underlines
to propagate into your component just because the surrounding text is
underlined; this also matches the behavior of existing form controls, which
are being translated into shadow dom.

The text-decoration property itself, along with all other properties, is of
course also blocked from propagating by default, though you can relax that
restriction.

~TJ
Received on Friday, 28 December 2012 03:56:26 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:56 GMT