W3C home > Mailing lists > Public > www-style@w3.org > May 2015

[css-variables] var() for non-custom properties

From: Bang Seongbeom <bangseongbeom@hotmail.com>
Date: Fri, 22 May 2015 00:05:39 +0900
Message-ID: <BLU436-SMTP103DCD92A49476640F88B7B0C10@phx.gbl>
To: www-style@w3.org
Is there some reason that var() can not be used for non-custom properties?
Except shorthand, it would be a good idea.
We're already using a similar mechanism such as var() for non-custom 
property; currentcolor. Here is an example using var() instead of 
currentcolor:
..parent {
      color: green;
}
..child {
      /* background-color: currentcolor; */
      background-color: var(color);
}
Received on Thursday, 21 May 2015 15:10:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:54 UTC