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

<end>Re: a simple question</end>

From: Ignacio Javier <ignacio.gomez@dicoruna.es>
Date: Mon, 08 Mar 1999 11:57:42 +0100
Message-ID: <36E3AD26.9E4F5811@dicoruna.es>
To: www-style@w3.org
> This is something I have dubbed "property co-dependency", and which
> has already been mentioned a few times.
> It occurs in many other cases too, for example:
>    DIV { background: green; color: yellow; }
>    P { background: white; color: black; }
>    EM { color: green; }
> Then the following EM:
>    <div><em>Hello</em></div>
> ...would be green on green.

In this case <em> doesn´t inherits, but <div> "shines trough", isnt'it?
As div are containers the problem is that somebody had make that devilish
generic <div>ergence so...:

one resource:
DIV { background: green; color: yellow; }

let's say my resource, my innocent document, cascading to the above:

.mine {color: black;}
.mine em {color: green; }
<div class="mine">
color and font-face will be inherited, but...<br>

<em>Not</em> only this propierties inherit:<br>

And OK, I'll be more careful next time writing my pseudocuments....
Greetings, igjav
Received on Monday, 8 March 1999 06:01:20 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:49 UTC