Re: [css-variables] Different syntax for variable definition and use

|  You may want to check the draft.  I switched the terminology to
|  "custom properties" a week or two ago.

Then, it doesn't make sense to use the 'var' prefix.



|  It's a tradeoff.  You may have to do a second search/replace while
|  renaming, but you have to type an additional four characters all of
|  the time.  "var(var-foo)" just seems... redundant.

use(my-property) and val(x-property) doesn't feel redundant at all.



|  If we do get arbitrary property referencing, we'll want another
|  function, like value() or prop() or something.

This is seriously discutable. For example, a "native" property doesn't 
necesarrily exist and can be "invalid", too.

Sample:

    {
        width: use(parent.flex-length, 100%);
        // what if flex-length doesn't exist?;
    } 

Received on Thursday, 30 August 2012 17:04:29 UTC