W3C home > Mailing lists > Public > www-html@w3.org > October 2004

Inclusion elements' style and the included content

From: Etan Wexler <ewexler@stickdog.com>
Date: Mon, 04 Oct 2004 23:34:08 +0000
To: www-html@w3.org
Message-Id: <91714691-165D-11D9-94E9-000502CB1B77@stickdog.com>




Dosuchin wrote to <mailto:www-html@w3.org> in "Re: [xframes] Remarks" 
(<mid:72ab364a04100407483f096e20@mail.gmail.com>):

> For example:
>
> <frame source="http://www.google.com" 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:00 GMT