Re: The universal selector, inherit and important

--- "L. David Baron" <dbaron@fas.harvard.edu> wrote:
> On Fri, 26 Nov 1999 06:05:26 -0800 (PST),
> =?iso-8859-1?q?Matthew=20Brealey?=
> (thelawnet@yahoo.com) wrote:
> > 
> > Due to the extreme stupidity of the weight sort
> (the
> > worst [i.e., worst idea rather than most badly
> written
> > (float gets this accolade)] thing in CSS), 
> > 
> > * {color: inherit !important}
> > 
> > would always result in the initial value;
> something I
> > think is worth pointing out, esp. in view of the
> fact
> > that this is a likely user style sheet.
> > 
> > BODY {color: black;
> > background: white;
> > }
> > * {color: inherit !important;
> > background: inherit !important;
> > }
> 
> That's a badly designed user stylesheet
But some mechanisms are more likely to lead to bad
design than others.

> However, I don't see why this case means
> !important should be
> changed.  
> I think it is very well designed as it is.
I disagree.

I think !important has:
1. no role in author style sheets
2. the role in user style sheets of overriding the
order sort.

> > As I see it the definition of ! important is
> totally
> > stupid - its ONLY role should be to override the
> > weight sort.
Should have read order sort, sorry.
> > I challenge anyone to name a useful way to use
> > !important, and then I'll show them a hundred ways
> > that users could get confused, with !important in
> > their user style sheets not working properly.
> 
> Read http://www.fas.harvard.edu/~dbaron/css/user/ . 
I just did, but I didn't see anything of relevance to
this discussion.


=====
----------------------------------------------------------
From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com

Received on Monday, 29 November 1999 09:02:23 UTC