Re: WebKit now supports CSS Variables

My first idea was to implements constants, too.
But I think that it's good to have an "edit" feature so we can write more 
complex code in the future.

Currently, this is not the main idea to allow CSS! or another thing that can 
have benefits of variables.
But if we'll implements these (of others things we don't have thoug before) 
in the future,
we should implements variables now so we are sure that all is possible in 
the future.

It's also a benefits for JavaScript developers.

Fremy

========================================================|
|    PS : 
|
|    BTW, I don't like CSS! because CSS is for styling not for scripting. 
|
|    Javascript/XMLScript is here for scripting 
|
========================================================|

--------------------------------------------------
From: "Andrew Fedoniouk" <news@terrainformatica.com>
Sent: Tuesday, June 24, 2008 9:34 PM
To: "David Hyatt" <hyatt@apple.com>
Cc: "Håkon Wium Lie" <howcome@opera.com>; "www-style list" 
<www-style@w3.org>
Subject: Re: WebKit now supports CSS Variables

>
> Is there any use case for CSS variables to be mutable (not constants)?
>
> As far as I can see the only difference from CSS constants ( 
> http://csswg.inkedblade.net/ideas/constants )
> is the ability to change values in runtime (from script).  So is the 
> question above.
>
> There is clearly a need for such thing as CSS vars/consts, but particular 
> model (vars vs. consts) is still debatable.
> At least for me. CSS consts as parse time entities allow to define 
> shortcut attributes too, btw.
>
> On other side if we already on the way of moving CSS declarations from 
> static form to something that is getting
> evaluated at runtime (early birds: MQ, calc()) then CSS-vars fit the 
> model. As a logical corollary I think it will be some
> sort of dynamic (behavioral?) extensions of  CSS that will allow to 
> manipulate values of variables:
>
> select#color-preferences
> {
>   on-value-changed! : var(theme-back-color) = #ff0000,
>                                  var(theme-back-image) = 
> url(red-back.jpg);
> }
>
> (That is CSSS! - http://terrainformatica.com/htmlayout/csss!.htm )
>
> I mean that: if we say "A" (variables in CSS) then we should be ready to 
> pronounce "B"
> ( some sort of dynamic [sub-]language in CSS ). Otherwise CSS-vars as 
> mutable entities
> appears as overkill if to compare them with @const.
>
> --
> Andrew Fedoniouk.
> http://terrainformatica.com
>
> 

Received on Tuesday, 24 June 2008 19:55:26 UTC