Re: "inherit"

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; } 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"                                          /,   _.. \   _\  ;`._ ,.                         `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 29 July 2003 04:09:46 UTC