Re: a simple question

-----Original Message-----
From: Todd Fahrner <fahrner@pobox.com>
To: Ian Hickson <py8ieh=www-style@bath.ac.uk>; Ignacio Javier
<ignacio.gomez@dicoruna.es>
Cc: www-style@w3.org <www-style@w3.org>
Date: Sunday, March 07, 1999 7:29 PM
Subject: Re: a simple question


>Here's what I think is reasonable in the case of color:
>
>"Inherit" and the universal selector are big steps forward. They will
permit
>authors to specify certain back/foreground color combinations only once.
>Like this:
>
>html {
>     color: black;
>     background: white
>     }
>
>*    {
>     color: inherit;
>     background: inherit
>     }

But with a minor modification, such a construct would probably not have the
desired effect. Consider:


html {
     color: black;
     background: white url(my.png)
     }

*    {
     color: inherit;
     background: inherit
     }

In this case, the background image in child elements will very likely *not*
line up with the background image in the parent element. This requires the
use of "transparent":

html {
     color: black;
     background: white url(my.png)
     }

*    {
     color: inherit;
     background: transparent
     }


>Am I understanding "inherit" right?


"Inherit" != "transparent".

Braden

Received on Tuesday, 9 March 1999 06:19:51 UTC