W3C home > Mailing lists > Public > www-style@w3.org > July 2003

Re: "inherit"

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 29 Jul 2003 01:11:25 -0700 (PDT)
To: Michael Day <mikeday@yeslogic.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.56.0307290106330.30489@dhalsim.dreamhost.com>

On Tue, 29 Jul 2003, Michael Day wrote:
> What is the default font-weight? Most people would say "normal", and
> they would be wrong, if default means "inherit" for some properties, but
> not others.

The keyword could probably have a better name. (Most proposals start off
with placeholder names that are changed before reaching CR.)

> How often does one need to reset such a combination of properties?

Most serious stylesheets will end up resetting a bunch of properties. I
have often written rules such as:

   * { color: inherit; margin: 0; padding: 0; border: 0; background: none;
       font: inherit; display: inline; list-style: none; float: none;
       position: static; }

...at the top of my style sheets, resetting properties so that I have a
nice simple box model to play with and don't have to worry about arbitrary
margins getting in the way.

(Did you notice the error? A single keyword would have avoided it.)

Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 29 July 2003 04:09:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:08 UTC