W3C home > Mailing lists > Public > www-style@w3.org > April 2010

Re: [css3-background]Positioning of box-shadow blurs?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 28 Apr 2010 13:50:40 -0700
Message-ID: <p2odd0fbad1004281350y1fdd2c89wf5fd8605425e2e34@mail.gmail.com>
To: Alex Meiburg <timeroot.alex@gmail.com>
Cc: www-style@w3.org
On Tue, Apr 27, 2010 at 9:58 PM, Alex Meiburg <timeroot.alex@gmail.com> wrote:
> I was reading more through the box-shadow spec, and the part on the blurring
> seemed unclear to me. Will the blurs be on the "outside" of the regular
> shadow, the "inside", or "centered"? So, if we have a 400px wide box, with a
> blur radius of 10px and no spread, will the resulting shadow (from the very
> lightest left pixel to the very lightest right pixel) be 400px wide
> (inside), 405px wide (centered), or 410px wide (outside)? Inside would have
> the effect of lightening the inside of the shadow; centered would be like
> "smudging" in bother directions from the otherwise hard shadow; and outside
> would be adding extra darking to the area around the shadow.

It's "outside".  The solid portion of the shadow is unaffected by the blur.

~TJ
Received on Wednesday, 28 April 2010 20:51:36 GMT

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