- From: Braden N. McDaniel <braden@shadow.net>
- Date: Mon, 3 Aug 1998 13:07:54 -0700
- To: "'Joel Jancovic'" <joj@altique.com>, <www-style@w3.org>, <www-html@w3.org>
> -----Original Message----- > From: www-style-request@w3.org [mailto:www-style-request@w3.org]On > Behalf Of Joel Jancovic > Sent: Monday, August 03, 1998 8:27 AM > To: www-style@w3.org; www-html@w3.org > Subject: Style sheet and Netscape > > > Hello, > > I have a problem with Stylesheet and netscape. > > I define the style before the body section : > > <style type="text/css"> > <!-- > body { color: blue } > //--> > </style> > > or > > <style> > <!-- > body { color: blue } > //--> > </style> > > And in the body section I define the text (for compatibility > with Netscape > 3) : > > <font color="gray">My text here</font> > > netscape 4,X displays the text in gray. and IE in blue.. > Which navigator is > right ? The CSS1 spec sez (from Section 3.2): "The UA may choose to honor other stylistic HTML attributes, for example 'ALIGN'. If so, these attributes are translated to the corresponding CSS rules with specificity equal to 1. The rules are assumed to be at the start of the author style sheet and may be overridden by subsequent style sheet rules. In a transition phase, this policy will make it easier for stylistic attributes to coexist with style sheets." Nore the first few words of that passage, "The UA may choose...". So, they're both right, in this case. If the UA *is* honoring the attributes, the document <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <HEAD> <TITLE>Foo</TITLE> <STYLE TYPE="text/css"> BODY { color: blue } </STYLE> </HEAD> <BODY> <FONT COLOR="gray">Silence is FOO!</FONT> </BODY> should be rendered the same as <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <HEAD> <TITLE>Foo</TITLE> <STYLE TYPE="text/css"> FONT { color: gray } BODY { color: blue } </STYLE> </HEAD> <BODY> <FONT>Silence is FOO!</FONT> </BODY> And the latter example should render "Silence is FOO!" in gray in a browser that supports CSS. Braden
Received on Monday, 3 August 1998 16:01:06 UTC