Re: [css-variables] status ?

Same applies to values. It is not a reason to not invent CSS variables.


25.05.2012, 22:35, "François REMY" <fremycompany_pub@yahoo.fr>:
> Because we want our code to be understandable. You know that 'bp' means
> background-position in your code, but I don't. And I (or anybody else) will
> have to work with your CSS files after you.
>
> Also, you may have set 'bp' to be background position, but I may have
> another file where 'bp' is set to border-padding. How do we fix that mess?
>
> -----Message d'origine-----
> From: Marat Tanalin | tanalin.com
> Sent: Friday, May 25, 2012 8:16 PM
> To: Tab Atkins Jr.
> Cc: Daniel Glazman ; www-style@w3.org
> Subject: Re: [css-variables] status ?
>
> It's a shame. Actually _each_ property could be shortened, especially
> non-shorthand ones, e.g.:
>
>     background-position => $bp
>     font-family => $ff
>     line-height => $lh
>     word-wrap   => $wr
>
> Why not just expand CSS variables to use them anywhere?
> Or at least not just in property values, but in property names too?
>
> What are exact issues with it (if any)?
> Why hardly limit the feature (variables in this case) immediately as fast as
> it's invented?
>
> Thanks.

Received on Friday, 25 May 2012 20:14:22 UTC