Re: Stand-in color before images load

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 UTC