W3C home > Mailing lists > Public > www-style@w3.org > August 1998

RE: Style sheet and Netscape

From: Braden N. McDaniel <braden@shadow.net>
Date: Tue, 4 Aug 1998 13:12:12 -0700
To: "'Sue Jordan'" <sue@css.nu>
Cc: "'Jan Roland Eriksson'" <rex@css.nu>, <www-style@w3.org>
Message-ID: <001001bdbfe4$2bf2e7f0$7422dbd0@bonezero>
> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org]On
> Behalf Of Sue Jordan
> Sent: Tuesday, August 04, 1998 10:53 AM
> To: braden@endoframe.com
> Cc: 'Jan Roland Eriksson'; www-style@w3.org
> Subject: Re: Style sheet and Netscape
> Roland Eriksson wrote:
> > > > > In your example, the properties set in the BODY rule shall
> > > > > be inherited all the way into all parts of the document,
> > > > > and with a higher priority, thus _overriding_ any FONT
> > > > > markup found in the doc.
> > >
> Braden N. McDaniel wrote:
> > > > Not so. If the attribute of FONT is recognized at all, it
> > > would override the
> > > > color specified for BODY. Inheritance is the *default*
> > > behavior, when the
> > > > color for an element is not specified. In this case, it
> > > *is* specified.
> >From the cite you provide, this statement is refuted.

You are mistaken. This citation does not speak to the claim made in the
above statement.

> Here it is:
> "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."
> The salient point is that the <FONT> declaration (which is in conflict
> with the style declaration), would be assumed to be at the
> start of the
> author style sheet, and would therefore be overridden.

Overridden by what??? Certainly not the style declared for BODY. BODY is a
parent element of FONT, and thus the color will inherit according to the
description in section 1.3, which includes

"In the first example, the color of 'H1' elements was set to blue. Suppose
there is an 'H1' element with an emphasized element inside:

  <H1>The headline <EM>is</EM> important!</H1>

If no color has been assigned to the 'EM' element, the emphasized "is" will
inherit the color of the parent element, i.e. it will also appear in blue.
Other style properties are likewise inherited, e.g. 'font-family' and

In the example in question, the inner element is FONT, and the outer
(parent) element is BODY. Since a color *has* been assigned to the inner
element, it will take that color.

Received on Tuesday, 4 August 1998 16:05:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:48 UTC