Re: "inherit"

> I have often needed the feature in my own stylesheets, so this would
> certainly not only be for UA developers.

Resetting large numbers of properties to their default/initial values 
seems error prone, regardless of keyword usage, as the declarations would 
need to be updated every time you used a new property elsewhere in your 
style sheets. Why not just introduce a new shorthand property:

everything: normal | initial | default

Specifying "normal" will do nothing, specifying "initial" will reset every
property to its initial value, and specifying "default" will either
inherit or initialise every property, depending on whether it is usually
inherited.

Then if you wanted to have say a frame in which style was reset to
defaults, but surrounded by navigation with custom styling, and inheriting
the color of its parent, it would be easy:

div.frame {
    everything: default;
    color: inherit
}

Only the everything property would take initial and default as values, as
that is where they can be used most effectively.

What do you think? :)

(This would also be *much* easier to implement).

Michael

-- 
YesLogic Prince prints XML!
http://yeslogic.com

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