W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Opacities

From: liorean <liorean@f2o.org>
Date: Sat, 15 May 2004 16:53:29 +0200
Message-ID: <40A62EE9.8070302@f2o.org>
To: www-style@w3.org

You probably have gotten these suggestions to damnation, so I won'd suggest it again. However, I was wondering why there is no background-opacity or foreground-opacity properties that affect only the background or foreground, but not entire contents. As it is now, you can only set opacity for all components of the elements. RGBA provides the possibility to do opacities on background alone, but then you have nothing that works on them if you have a background image. A background-opacity property that affects only the background of the element itself, and a foreground opacity that affects the border and contents, whether textual, replaced or nested elements, would fit nicely with the current opacity property. The foreground opacity would behave just like opacity does now with the exception of not affecting the background on the element it applies to, while the background opacity does just the part of opacity that foreground-opacity doesn't. The opacity property could then facto
r them together just like it does today, or be a compound property that may act as a shortform for the other two. foreground-opacity in turn could be made up of border-opacity and content-opacity if one wishes...

Is there any reason for not including something like this in CSS3?
-- 
David "liorean" Andersson

ViewStyles, ViewScripts, SwitchStyles and GraphicsInfo bookmarklets:
<http://liorean.web-graphics.com/>
Hangouts:
<http://codingforums.com/> <http://yourmusicforums.com/>
Received on Saturday, 15 May 2004 10:53:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:30 GMT