W3C home > Mailing lists > Public > www-style@w3.org > November 1999

The universal selector, inherit and important

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Fri, 26 Nov 1999 06:05:26 -0800 (PST)
Message-ID: <19991126140526.17924.rocketmail@web901.mail.yahoo.com>
To: www-style <www-style@w3.org>
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;

If !important had been properly defined, none of these
problems [to take another example: .class {width:
50%;} DIV {margin: something else !important}, which
would totally screw up the whole page].

As I see it the definition of ! important is totally
stupid - its ONLY role should be to override the
weight sort.

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.

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 Friday, 26 November 1999 09:05:28 UTC

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