Re: [css3-background] box-shadow spread Multiple Choice Question

On Jun 3, 2010, at 5:05 PM, Brad Kemper wrote:

> 1. Better than nothing, but it is not just distortion of elipses that suffers. It is scaling of elipses, too, because the scaling is not nearly enough. Consider the difference between the inside and outside radii of a border whose 'border-radius' measurement is close to its 'border-width'. It is a big difference, with the inside at or near zero radius. Now consider how little you have to scale a typical element to get offsets of a few (or even several) pixels. Hardly any at all, so that the corners look very odd, not much at all like a real offset.

I've posted a picture that compares option 1 (scaling to simulate spread) with option 2 (offsetting to get spread):

http://www.bradclicks.com/cssplay/spread_comparison.png

Option 1 is not as terrible as I thought, but is still furthest from normal expectations, with uneven amounts of spread around the corners.

Received on Friday, 4 June 2010 03:59:27 UTC