W3C home > Mailing lists > Public > www-style@w3.org > August 2001

Excluding declarations from the cascade

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 19 Aug 2001 19:27:58 +0200
To: www-style@w3.org
Message-ID: <44qvntglpspjvud7th8upt49159lq50ncl@4ax.com>

   Current CSS features allow the user some control over the
presentation of documents, but it's a rather limited control. For
example some users don't like 'text-decoration: blink' others don't
like 'position: fixed', 'background-attachment: fixed', 'cursor:
crosshair', etc.pp. CSS allows you only to demand a specific
presentation, you cannot exclude some property/value combinations. For
example, to get rid of 'position: fixed' I can only write

  * { position: static !important }

but this would override all values for the position property I _want_ to
allow, and this would cause problems. Consider

 * { text-decoration: none !important }

and the author defines

 obsololete { text-decoration: line-through }

the presentation would break. I like to see some feature in CSS Level 3
that allows me to exclude distinct values for specific properties
instead of overriding them.

A possible syntax could be a new at-rule, e.g.

  @exclude {
    :link, :visited { text-decoration: none                  }
    *               { position: fixed                        }
    body            { background-attachment: fixed           }
    p               { color: silver; background-color: white }

but maybe others can come up with some better suggestions.

Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Sunday, 19 August 2001 13:28:38 UTC

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