STYLE inheritance & FRAME

Chad Owen Yoshikawa (chad@CS.Berkeley.EDU)
Fri, 30 May 1997 18:53:49 -0700 (PDT)


From: Chad Owen Yoshikawa <chad@CS.Berkeley.EDU>
Message-Id: <199705310153.SAA08227@whenever.CS.Berkeley.EDU>
Subject: STYLE inheritance & FRAME
To: www-html@w3.org
Date: Fri, 30 May 1997 18:53:49 -0700 (PDT)


After reading the Style WD, it seems that STYLEs only affect the current
document, unless it's a user style that affects all documents.  

Should it be the case that the STYLE affects all child FRAMES by
default?  What about HTML that is more or less embedded by the
OBJECT/IFRAME tag?  It seems to be that the purpose of style is to affect 
the style of the entire document, unless another style interposes.  In a 
HTML file with a FRAMESET, the 'document' is a set of HTML files: the main
HTML file and the child frame HTML files.  So the style should affect the 
content of all of the files, unless interposed on by another STYLE.

Currently, in Netscape 4.0 style doesn't get inherited across
frame boundaries.  I haven't seen any of the CSS documents or other
style documents talk about style flowing across frame boundaries.

Consider the following (contrived) example.  
1)A UA, foo, with support for STYLE sheets but no FRAMEs support.  
2)A UA, bar, with support for both
2)A web page with a STYLE of red paragraphs, with both a FRAMESET and
	a BODY element.  The goal of the web page designer here is to
	have UAs with FRAME support and UAs with BODY support see
	documents that are closely related, well as close as possible.

In foo, the paragraphs are red.  In bar they are not.  This seems 
inconsistent.  The FRAMESET and BODY are trying to show the same information,
but in this case they have different styles.  Yes, the designer could
copy the STYLE link or inline style to every frame's document, but this
(I think) is orthogonal to the real issue: 

If BODY inherits style from the document, it seems that FRAMESET (and its 
children FRAMEs) should as well.   However, the style should only
be inherited by the original frame content, just as the style should only
be inherited by the original body HTML content.  Whenever a frame moves
to a new document, the style gets reset.

Comments?

-Chad
-- 
Finger me for my pgp public key
Today's random buzzword: distributed cryptography