W3C home > Mailing lists > Public > www-style@w3.org > March 2015

[css-text-decor] "Computed value" line for text-shadow incorrect

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 26 Mar 2015 08:15:42 -0700
To: www-style@w3.org
Message-ID: <20150326151542.GA19304@pescadero.dbaron.org>
http://dev.w3.org/csswg/css-text-decor/#text-shadow-property
currently has the definition:

  Computed value:  a color plus three absolute <length>s 

This is incorrect in two ways:

 (1) It doesn't admit that the property takes a 'none' value or that
 it can have multiple shadows

 (2) It claims that 'currentColor' or the initial value always
 computes to a color, rather than something that uses the current
 value of the 'color' property as it inherits.  For currentColor it
 is the latter in level 4 of CSS Color (assuming the change sticks);
 for the initial value it has always been the latter.

I think it should instead use the line from
http://dev.w3.org/csswg/css-backgrounds-3/#box-shadow which says:

  Computed value:  any <length> made absolute; any specified
                   color computed; otherwise as specified

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Received on Thursday, 26 March 2015 15:16:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:30 UTC