W3C home > Mailing lists > Public > www-style@w3.org > June 2003

Re: author-defined color aliases

From: Matt <matt@hogwarts-library.net>
Date: Mon, 16 Jun 2003 22:02:51 +0100
Message-ID: <031001c3344a$ca85b390$812994d9@matt>
To: <www-style@w3.org>

[Reply interposted]

Brant Langer Gurganus wrote:
> While it is probably too late for CSS3 Color Module consideration, I
> believe that author-definable color aliases would be useful.  CSS can
> define the RGB values of common colors (red, green, blue, etc.) and
> then authors can define aliases to their commonly used RGB values.
<examples squashed onto one line>
> Example of CSS-defined color (normatively included in specification):
> @color-definition { name: white; color: #FFFFFF }
> Example of Author-defined color:
> @color-definition { name: almostBlack; color: #010101 }
> Example Usage:
> body { color: almostBlack; background-color: white }

body { color: white ; background-color: almostBlack}
wouldn't degrade in a non-suporting browser.

> The advantages of such an addition to CSS would be more consistend
> color themes because there would be fewer chances for typos.

Sorry, but typing errors is not  a reason for an addition to a  W3
(Most good text editors can be configured to recognise all (e.g.) accepted
properties and values in CSS anyway)

Received on Monday, 16 June 2003 17:02:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:07 UTC