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

[css3-background] Default color of box shadows

From: Daniel Tan/BoltClock <lists@NOVALISTIC.com>
Date: Wed, 06 Feb 2013 19:55:37 +0800
Message-ID: <511244B9.9070101@NOVALISTIC.com>
To: "www-style@w3.org" <www-style@w3.org>
The description of box-shadow according to the Backgrounds and Borders 3
module says:

> The ‘box-shadow’ property attaches one or more drop-shadows to the
> box. The property is a comma-separated list of shadows, each
> specified by 2-4 length values, an optional color, and an optional
> ‘inset’ keyword. Omitted lengths are 0; omitted colors are a
> UA-chosen color.

But in the description of each <shadow>, it says:

> The color is the color of the shadow. If the color is absent, the
> used color is taken from the ‘color’ property.

Current implementations appear to use currentColor across the board; 
older versions from a couple of years ago made their own choices (in 
particular, Gecko chose black while WebKit chose transparent). As far as 
I'm aware, before the module reverted to WD status it was never stated 
to use currentColor, so it was in fact left up to the implementation to 
decide. The decision to use currentColor was only added to the newer 
draft (which has since of course returned to CR), and implementations 
have updated since.

However, the "UA-chosen color" portion remains, so the current prose is 
somewhat contradictory. Is it still up to the UA to choose, or must a 
box shadow be currentColor if the color value is not specified now?

-- 
Daniel Tan/BoltClock
NOVALISTIC • Stellar Software Development & Design
<http://NOVALISTIC.com>
Received on Wednesday, 6 February 2013 11:56:02 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:05 GMT