@@ -9,12 +9,13 @@ Level: 1
9
9
Group : csswg
10
10
TR : http://www.w3.org/TR/css-variables-1/
11
11
ED : http://dev.w3.org/csswg/css-variables/
12
+ Previous Version : http://www.w3.org/TR/2014/WD-css-variables-1-20140506/
12
13
Previous Version : http://www.w3.org/TR/2013/WD-css-variables-1-20130620/
13
14
Previous Version : http://www.w3.org/TR/2013/WD-css-variables-20130312/
14
15
Previous Version : http://www.w3.org/TR/2012/WD-css-variables-20120410/
15
16
Editor : Tab Atkins Jr., Google, http://xanthir.com/contact
16
17
Abstract : This module introduces cascading variables as a new primitive value type that is accepted by all CSS properties, and custom properties for defining them.
17
- Ignored Terms : case-insensitive, getpropertyvalue()
18
+ Ignored Terms : getpropertyvalue()
18
19
Link Defaults : css-color-3 (property) color, cssom-1 (interface) cssstyledeclaration
19
20
</pre>
20
21
@@ -172,7 +173,7 @@ Custom Property Value Syntax</h3>
172
173
and the values of ''var()'' functions substituted into custom properties,
173
174
are <em> case-sensitive</em> ,
174
175
and must be preserved in their original author-given casing.
175
- (Many CSS values are case-insensitive,
176
+ (Many CSS values are <a>ASCII case-insensitive</a> ,
176
177
which user agents can take advantage of by "canonicalizing" them into a single casing,
177
178
but that isn't allowed for custom properties.)
178
179
@@ -608,7 +609,7 @@ Variables in Shorthand Properties</h3>
608
609
if an API allows them to be observed.
609
610
610
611
Similarly,
611
- while [[CSSOM]] defines that shorthand properties are serialized
612
+ while [[CSSOM-1 ]] defines that shorthand properties are serialized
612
613
by appropriately concatenating the values of their corresponding longhands,
613
614
shorthands that are specified with explicit ''var()'' functions
614
615
must serialize to the original, ''var()'' -containing value.
@@ -641,7 +642,7 @@ AAAAAAA AAAAAAAPPPPPPPPPP IIIIIIIIII
641
642
<h2 id='apis'>
642
643
APIs</h2>
643
644
644
- All <a>custom property</a> <a>declarations</a> have the <a >case-insensitive</a > flag set.
645
+ All <a>custom property</a> <a>declarations</a> have the <var > case-insensitive</var > flag set.
645
646
646
647
Note: Custom properties do not appear on a CSSStyleDeclaration object in camel-cased form,
647
648
because their names may have both upper and lower case letters
@@ -655,27 +656,17 @@ Serializing Custom Properties</h3>
655
656
Custom property names must be serialized with the casing as provided by the author.
656
657
657
658
<p class='note'>
658
- Ordinarily, property names are restricted to the ASCII range and are case-insensitive,
659
+ Ordinarily, property names are restricted to the ASCII range and are <a>ASCII case-insensitive</a> ,
659
660
so implementations typically serialize the name lowercased.
660
661
661
662
662
663
663
664
<h2 id='changes'>
664
- Changes since the June 20 2013 Last Call Working Draft</h2>
665
-
666
- <ul>
667
- <li>
668
- The syntax of custom properties was changed from ''var-foo'' to ''--foo'' .
669
-
670
- <li>
671
- The ''var()'' function takes the full custom property name as its first argument,
672
- rather than the name minus a prefix.
673
-
674
- <li>
675
- The CSSVariablesMap interface was removed,
676
- in favor of a better custom-property API to be defined in the future.
677
- </ul>
665
+ Changes since the May 6 2014 Last Call Working Draft</h2>
678
666
667
+ * Serialization of longhands when shorthand uses a variable was defined.
668
+ * Link to DOM's definition of "case-sensitive".
669
+ * Added example of using variables with '':lang()'' to do simple i18n.
679
670
680
671
681
672
<h2 id="acks">
0 commit comments