W3C home > Mailing lists > Public > www-style@w3.org > March 2005

Re: Stand-in color before images load

From: Ognyan Kulev <ogi@fmi.uni-sofia.bg>
Date: Wed, 30 Mar 2005 10:31:09 +0300
Message-ID: <424A55BD.40703@fmi.uni-sofia.bg>
To: www-style@w3.org

Laurens Holst wrote:
> p { background: transparent url("marble1.png");
>     content: url("marble2.png"); }
> p:alt { background-color: black; }

What about general "@supersede" at-rule?

p {
   color: white;
}
p {
   background-color: black;
   @supersede {
     background: url("marble1.png");
     @supersede {
       background: url("alpha-blended.png");
     }
   }
}

The @supersede block *replaces* all style in same level iff *all* of 
@supersede block is supported and can be used in rendering immediately, 
otherwise @supersede is ignored.

Notice that it can help backward compatibility in CSS too.

Regards,
ogi
Received on Wednesday, 30 March 2005 07:31:49 GMT

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