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:
<style>
DIV { background: green; color: yellow; }
</style>

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

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

<em>Not</em> only this propierties inherit:<br>
<ul>
<li>one</li>
<li>two</li>
<li>....</li>
<li>n</li>
</ul>
</div>


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

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