W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2012

[whatwg] [canvas] inner shadows

From: Tyler Larson <talltyler@gmail.com>
Date: Thu, 26 Apr 2012 12:04:30 -0400
Message-ID: <682C6256-94F6-4351-9583-271294731B2B@gmail.com>
Shadows can be applied to the outside of anything. This is a great feature that is otherwise rather difficult to recreate but why not enable users to be able to have inner shadows? Things like beveling, embossing and many other stylistic things that are used in today designs rely on inner shadows. 

It could just be a boolean value noting if rendering is done to the inside or the outside of what is currently drawn into the context.
In CSS we have inset box-shadows, which gives a similar effect. 

Can we add this to the canvas shadows please?

-Tyler Larson
Received on Thursday, 26 April 2012 09:04:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:12 UTC