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

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 UTC