You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<em>Any</em> property name starting with the prefix "var-" is a <i>variable property</i>.
163
-
Variable properties are defined to be valid but meaningless
164
-
as they are meant solely for allowing authors to pass custom data around their page,
165
-
similar to the <ahref="http://www.w3.org/TR/html5/global-attributes.html#embedding-custom-non-visible-data-with-the-data-attributes">custom data attributes</a> in HTML.
166
-
Other specifications and user agents must not assign a particular meaning to <i>variable properties</i>
167
-
or attach a specific effect to them beyond the bare minimum that comes from them being valid properties.
162
+
<em>Any</em> property whose names starts with the prefix "var-" is a <dfntitle="variable property|variables properties">variable property</dfn>.
163
+
A <i>variable property</i> defines a value for a corresponding <i>variable</i>
164
+
with the same name as the property except that the "var-" prefix is replaced with a "$" prefix.
168
165
169
166
<pclass='issue'>
170
167
As defined here,
171
168
the syntax for variable usage is different from the syntax for variable definition
172
-
(i.e. var-foo for definition, var(foo) for usage).
173
-
Some have suggested that the syntaxes should should match,
174
-
using functional syntax in both cases.
175
-
Others have suggested using a prefixed symbol instead of functional syntax
176
-
(e.g. $foo)
177
-
for both the property and usage.
169
+
(i.e. var-foo for definition, $foo for usage).
170
+
It might be nice to have the syntaxes match,
171
+
using "$foo" as the property name as well.
172
+
This would require a minor change in the Core Grammar.
173
+
174
+
<p>
175
+
<i>Variable properties</i> are defined to be valid but meaningless
176
+
as they are meant solely for allowing authors to pass custom data around their page,
177
+
similar to the <ahref="http://www.w3.org/TR/html5/global-attributes.html#embedding-custom-non-visible-data-with-the-data-attributes">custom data attributes</a> in HTML.
178
+
Other specifications and user agents must not assign a particular meaning to <i>variable properties</i>
179
+
or attach a specific effect to them beyond the bare minimum that comes from them being valid properties.
178
180
179
181
<p>
180
182
This specification reserves the use of all function tokens starting with the prefix "var" within variable properties.
0 commit comments