- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Tue, 6 May 2014 10:40:21 -0700
- To: www-style list <www-style@w3.org>
The CSS WG has published an updated Working Draft of the CSS Custom Properties for Cascading Variables Level 1 Module: http://www.w3.org/TR/css-variables-1/ This module introduces *custom properties*, which are author-defined properties which can accept any value, and *the var() function*, which allows authors to substitute the value of a custom property into another property. This allows basic use of custom properties to help enable scripting-based polyfills of properties, and also allows usage of custom properties as a way of defining "cascading variables", which are "variables" that can be set on individual nodes and inherited to their descendants. This is an updated Last Call Working Draft, since there have been significant changes in the spec since the previous Last Call. Significantly, the syntax of a custom property has changed, from "var-foo" to "--foo", as has the syntax of the var() function, from "var(foo)" to "var(--foo)". As well, the specialized "CSSVariablesMap" interface has been dropped, pending a fuller and more useful exploration of the surrounding use-cases in a future module that expands the functionality of custom properties. The overall functionality of the draft has not changed in any significant way, however. Significant changes are listed at: http://www.w3.org/TR/2014/WD-css-variables-1-20140506/#changes Please send any comments to this mailing list, <www-style@w3.org>, and please, prefix the subject line with [css-variables] (as I did on this message). For the CSS WG, Tab Atkins Jr.
Received on Tuesday, 6 May 2014 17:41:08 UTC