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

Re: Border and background images

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Sat, 28 Aug 2004 15:17:46 +0200
Message-ID: <413085FA.2070105@annevankesteren.nl>
To: fantasai <fantasai.lists@inkedblade.net>
CC: www-style@w3.org

>> Yes, that is indeed the right place, but you probably noticed that that
>> draft is quite old. It isn't abandoned, but interest in fancy borders
>> seems to have diminished a lot and it didn't seem important to publish a
>> new version.
>>
>> However, seeing this message, maybe there is interest still and we should
>> publish another draft, even if it has many loose ends still...
> 
> The trouble with fancy borders is the difficulty of specifying them right
> and of implementing them. But most of what page authors are doing is using
> background images to achieve the effect, inserting extra elements to have
> the necessary frames to attach them to.
> 
> So here's an alternate proposal:
>   Leave image borders for a later draft.
>   Publish backgrounds and borders without image borders but *with a way of
>   specifying multiple backgrounds on a single element*.

If '::outide' is going to make it, can't we just use that 
pseudo-element? Also, a lot of pages are fixed width, like blogger.com 
and don't really need multiple backgrounds or border images. What they 
need is proper support for '::before' and '::after'. (There is some 
support for it I believe in IE7[1].) Since it is a fixed width design 
you can easily create rounded corners when you have three "elements":

   <foo>
    <::before/>
    <::after/>
   </foo>

Where FOO will get the normal background, if there is any and the top, 
fixed width background with rounded corners can be applied to 
'foo::before', where the bottom, fixed width background can be applied 
to 'foo::after'. Quite easy, just not supported.


> It should be relatively easy to specify and to implement, and we'll get the
> CSS3 backgrounds and borders properties out sooner, which is needed.

Although I'm not a WG member I would like to vote for this plan. The new 
properties [css3-background] and [css3-border] are introducing are very 
much worth it.


[1]<http://dean.edwards.name/IE7/>


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>
Received on Saturday, 28 August 2004 13:18:07 GMT

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