Inclusion elements' style and the included content

Dosuchin wrote to <> in "Re: [xframes] Remarks" 

> For example:
> <frame source="" style="color: #f0f;
> background-color: #000;">
> would make Google's page change!

When Cascading Style Sheets (CSS) style an inclusion element (like a 
'frame', 'object', or 'img' element), the included content must not 
inherit the style of the inclusion element. Thus a CSS 'color' value on 
a 'frame' element must have no effect on the document in the frame.

I stop short of saying that an inclusion element's style must not 
affect the included content. For example, if included content has a 
non-opaque background and the inclusion element has a visible 
background, the latter should show through the former.

Etan Wexler.

Received on Tuesday, 5 October 2004 00:54:23 UTC