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

Re: Is there a formula for converting a linear gradient to a box-shadow?

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Thu, 31 Jan 2013 09:45:56 +0100
Message-ID: <510A2F44.8070409@kozea.fr>
To: Behrang Saeedzadeh <behrangsa@gmail.com>
CC: François REMY <francois.remy.dev@outlook.com>, W3C CSS Mailing List <www-style@w3.org>
Le 31/01/2013 00:50, Behrang Saeedzadeh a écrit :
> - And the question is: is there a formula for creating a box shadow that
> renders identical to a given linear gradient?

I think not, because there is no syntax to specify a different blur 
radius in the horizontal and vertical direction.

And even if you had that, a linear gradient to transparency and a box 
shadow that look similar are not quite the same. Their respective 
"profiles" would be a triangle (linear interpolation) and a bell curve 
(a Gaussian function.)

Simon Sapin
Received on Thursday, 31 January 2013 08:46:21 UTC

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