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

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 UTC