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

RE: [css3-background] box-shadow spread radius and rounded corners

From: Brian Manthos <brianman@microsoft.com>
Date: Wed, 28 Apr 2010 19:46:11 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>, Brad Kemper <brad.kemper@gmail.com>
CC: Sylvain Galineau <sylvaing@microsoft.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>, "Prabs Chawla" <pchawla@microsoft.com>
Message-ID: <FA122FEC823D524CB516E4E0374D9DCF014E9956@TK5EX14MBXC136.redmond.corp.microsoft.com>
#  The shadow should not change shape when a spread
# radius is applied: sharp corners should remain sharp. 

As I mentioned earlier, the sentence prior to the colon seems completely incorrect given Brad's description.

> This is incorrect.  In your "extreme" example png, if we made it more
> extreme with, say, a 200px spread, the shadow would be very nearly circular.
> It won't ever be exactly, because it will always have 280px straight along the
> top/bottom and 180px straight along the left/right, but that straightness
> quickly becomes nearly visually irrelevant.

Regarding the portion after the colon, it doesn't speak to rounded corners remaining round as such, Tab's concern becomes ... well ... more pointed for the case of a rounded corners with an inset shadow.

It's easy to see from the spec Example XXVIII in the 28 April 2010 version of http://dev.w3.org/csswg/css3-background/#the-box-shadow.

If you increase the length parameters by another 5px, the shadow will lose rounding entirely -- it will become sharp.

I'm surprised this is considered desirable.

- Brian
Received on Wednesday, 28 April 2010 19:47:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:45 UTC