W3C home > Mailing lists > Public > www-svg@w3.org > March 2009

display different elements in transparent areas based on z-index values

From: Morph Ex <morphex9@yahoo.com>
Date: Sat, 7 Mar 2009 14:02:18 -0800 (PST)
Message-ID: <246477.54036.qm@web111203.mail.gq1.yahoo.com>
To: www-svg@w3.org

I have a suggestion for a new svg feature and would like to get a few opinions on whether it would even be possible.  I've recently been looking for a way to display different backgrounds/elements through different transparent areas of svg and png images.  As an example, imagine that you have a svg image containing 3 different transparent areas.  This image is going to be positioned on top of multiple elements in a web page.  Let's say that it's displayed on top of a div element which is on top of another div element which is on top of the body element.  Each of those elements contain a different background and a different z-index value.  Would it be possible to assign a z-index value to each transparent area in the image?  That way the transparent area would display the element located behind the image at the specified z-index value.  If no element was found behind the image at that z-index then the transparent area would simply revert to the default
 behavior.  Currently the transparent areas in an image will only display the element directly behind them.  By adding this feature you could have multiple elements stacked on top of each other and display a different one in each transparent area of the image.  Would this feature be possible in svg?  If it is possible then how or where can I suggest that it be implemented in a future svg specification?


All the best,

Received on Sunday, 8 March 2009 18:25:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:16 UTC