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

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

From: Behrang Saeedzadeh <behrangsa@gmail.com>
Date: Thu, 31 Jan 2013 09:53:27 +1100
Message-ID: <CAERAJ+_Z-SUCLg30DDKckbNBfgUVG2pRq0-yyxsS75maf-00JQ@mail.gmail.com>
To: W3C CSS Mailing List <www-style@w3.org>
Hi,

I want to define a box-shadow that renders something identical to a linear
gradient. But box-shadow and linear gradient have different parameters.

The question is, is there a formula for converting a linear gradient to a
box shadow?

Cheers,
Behrang Saeedzadeh
http://www.behrang.org
Received on Wednesday, 30 January 2013 22:53:54 GMT

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