@@ -1096,7 +1096,9 @@ Range Restrictions and Range Definition Notation</h3>
1096
1096
within the angle brackets, after the identifying keyword,
1097
1097
indicating a closed range
1098
1098
between (and including) <var> min</var> and <var> max</var> .
1099
- For example, <<integer [0,10]>> indicates an integer between ''0'' and ''10'' , inclusive.
1099
+ For example, <<integer [0,10]>> indicates an integer between ''0'' and ''10'' , inclusive,
1100
+ while <<length [0, 100px]>> indicates a length between ''0px'' and ''100px''
1101
+ (expressed in any unit).
1100
1102
1101
1103
Note: CSS values generally do not allow open ranges;
1102
1104
thus only square-bracket notation is used.
@@ -1113,6 +1115,12 @@ Range Restrictions and Range Definition Notation</h3>
1113
1115
or in the property description,
1114
1116
then <code> [−∞,∞] </code> is assumed.
1115
1117
1118
+ Values of −∞ or ∞ must be written without units,
1119
+ even if the value type uses units.
1120
+ Values of ''0'' <em> can</em> be written without units,
1121
+ even if the value type doesn't allow "unitless zeroes"
1122
+ (such as <<time>> ).
1123
+
1116
1124
Note: At the time of writing,
1117
1125
the <a>bracketed range notation</a> is new;
1118
1126
thus in most CSS specifications
0 commit comments