W3C home > Mailing lists > Public > www-style@w3.org > May 2013

[css-text-decor-3] Is handling of no-<color> text-shadow for text decorations intentional?

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 6 May 2013 23:06:54 -0700
To: www-style@w3.org
Message-ID: <20130507060654.GA12536@crum.dbaron.org>
specifies how to handle the omission of <color> only by reference to
http://www.w3.org/TR/css3-background/#the-box-shadow , which says
that when the <color> part of a shadow is omitted, the 'color'
property is used.

In Gecko, which I believe implemented text-shadow before this was
specified, we instead shadow the color that was drawn.  For text,
this yields the same result, but for text decorations, it yields a
different result.

Compare, for example, the following:
in both Chrome (follows current spec) and Firefox.

Is this choice of behavior intentional?  If not, which is

If this is intentional/preferable, I think the spec should have a
note that notes that in this case, the color of the shadow might be
different from the color of the decoration even though it is the
same as the color of the text.


𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂
Received on Tuesday, 7 May 2013 06:07:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:29 UTC