W3C home > Mailing lists > Public > www-style@w3.org > October 2008

Re: [Proposal] CSS: Access to system colors, also, color filters

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 13 Oct 2008 12:14:19 +1300
Message-ID: <11e306600810121614w1affb570i429951968b24355b@mail.gmail.com>
To: "Γριφεγ" <grfgguvf@gmail.com>
Cc: www-style@w3.org
On Wed, Sep 24, 2008 at 11:03 PM, Γριφεγ <grfgguvf@gmail.com> wrote:

>
> I propose access to system default colors and simple color filters in
> CSS such as in the example that follows:
>
> ..HILITE {
>  background-color: invert(background);
>  foreground-color: invert(foreground);
> }
>
> Proposed special colors - default to value from system theme:
> * background
> * foreground
> * selection-background
> * selection-foreground
> * ...more?


CSS 2.1 already has system colors.

Proposed color filters:
> * invert(color)
> * tint(original, ink, percentage) /* Can sometimes be poorly emulated
> with opacity... */
> * brightness([color,] percent)
> * hue([color, ]shift value probably 0-255)
> * saturation(color, percent)
> * ...
>

Could be interesting. Certainly would be easy to implement.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Sunday, 12 October 2008 23:14:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:15 GMT