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

Re: Multiple Background Images

From: Ted Shaneyfelt <tvs@hawaii.edu>
Date: Sun, 28 Nov 2004 15:12:18 -1000
To: www-style@w3.org
Message-id: <002101c4d5b0$7a0b5560$6401a8c0@maunakea>


> > Maybe we should be trying to address a more general need:
> > Allow multiple elements to occupy the same space, one rendered
> > over the top of the previous elements that share that space.
>
> That's very different problem.  Background images should not be used for
> real content, whereas every element that is overlaid should be real
> content.

I'd've used XSLT and still kept the content separate, but your point is
good.
That would've been an inappropriate use of CSS.

Similarly, I believe multiple backgrounds are inappropriate for borders as
being
discussed.  We should be talking about border and padding properties
instead of multiple background images to achieve this effect.

Today, we can say "border-left: red", so it makes sense to be able to say
"border-left: url(left.png)" to achieve the same effect in a much more
straightforward
and consistent way.  For corners, "border-top-right: url(tr.png)" seems
appropriate.

Of course, if we're going down that road, we might consider allowing images
for
texture wherever color can be used (including text).

_-T
Received on Monday, 29 November 2004 01:06:08 GMT

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