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

[css-variables] var function for non-custom property

From: Bang Seongbeom <bangseongbeom@hotmail.com>
Date: Sun, 17 May 2015 16:01:36 +0000
Message-ID: <SNT406-EAS158EDAEFEB8CFBB3BF76B4DB0C50@phx.gbl>
To: www-style@w3.org
'var()' function is limited for custom property only.
But custom and normal property should be treated equally.
Custom properties are not spacial, except:
1. They do not display.
2. They are inherited always.

So I want to do like this:
..foo {
    color: red;
..foo .bar {
    border: 1px solid var(color);

And then we will change 'var()' function name to 'value()'.
'currentcolor' keyword in [CSS3COLOR] may be deleted.
Received on Tuesday, 2 June 2015 15:40:28 UTC

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