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
<dd>The attribute value will be parsed as the contents of a CSS
1209
-
<var><string></var>. The default is the empty string.
1207
+
<dd>
1208
+
The attribute value will be parsed as the contents of a CSS <var><string></var>.
1209
+
The default is the empty string.
1210
1210
1211
1211
<dt>''color''
1212
-
<dd>The attribute value will be parsed as a CSS <var><color></var> value.
1213
-
The default is ''currentColor''.
1212
+
<dd>
1213
+
The attribute value must parse as a HASH or IDENT CSS token,
1214
+
and be successfully interpreted as a <var><color></var>.
1215
+
The default is ''currentColor''.
1214
1216
1215
1217
<dt>''url''
1216
-
<dd>The attribute value will be parsed as the argument of a
1217
-
''url()'' expression. The default is a UA-dependent URI defined
1218
-
to point to a non-existent document with a generic error
1219
-
condition. (i.e. it shouldn't be an FTP URI that causes a DNS
1220
-
error, or an HTTP URI that results in a 404, it should be a
1221
-
nondescript error condition.) Relative URLs must be made absolute
1222
-
according to the rules of the document language as applied to URLs
1223
-
originating from the element; they are not relative to the style sheet.
1218
+
<dd>
1219
+
The attribute value will be parsed as the contents of a CSS <var><string></var>.
1220
+
It is interpreted as a quoted string within the ''url()'' notation.
1221
+
The default is a UA-dependent URI defined to point
1222
+
to a non-existent document with a generic error condition.
1223
+
(i.e. it shouldn't be an FTP URI that causes a DNS error, or an HTTP URI that results in a 404, it should be a nondescript error condition.)
1224
+
Relative URLs must be made absolute
1225
+
according to the rules of the document language as applied to URLs originating from the element;
1226
+
they are not relative to the style sheet.
1224
1227
1225
1228
<dt>''integer''
1226
-
<dd>The attribute value will be parsed as a CSS <var><integer></var>.
1227
-
The default is ''0'', or else the property's minimum value if ''0'' is not valid for the property. The default should also be used if the property
1228
-
in question only accepts integers within a certain range and
1229
-
the attribute is out of range.
1229
+
<dd>
1230
+
The attribute value must parse as a NUMBER CSS token,
1231
+
and be successfully interpreted as an <var><integer></var>.
1232
+
The default is ''0'',
1233
+
or else the property's minimum value if ''0'' is not valid for the property.
1234
+
The default must also be used
1235
+
if the property in question only accepts integers within a certain range
1236
+
and the attribute is out of range.
1230
1237
1231
1238
<dt>''number''
1232
-
<dd>The attribute value will be parsed as a CSS <var><number></var>.
1233
-
The default is ''0.0'', or else the property's minimum value if ''0.0'' is not valid for the property. The default should also be used if the
1234
-
property in question only accepts numbers within a certain
1235
-
range and the attribute is out of range.
1239
+
<dd>
1240
+
The attribute value must parse as a NUMBER CSS token,
1241
+
and is interpreted as an <var><number></var>.
1242
+
The default is ''0'',
1243
+
or else the property's minimum value if ''0'' is not valid for the property.
1244
+
The default must also be used
1245
+
if the property in question only accepts integers within a certain range
1246
+
and the attribute is out of range.
1236
1247
1237
1248
<dt>''length''
1238
1249
<dt>''angle''
1239
1250
<dt>''time''
1240
1251
<dt>''frequency''
1241
-
<dd>The attribute value will be parsed as a CSS <var><length></var>,
1242
-
<var><angle></var>, <var><time></var> or <var><frequency></var> (respectively), and
1243
-
the unit identifier (if any) will appear in the attribute value.
1244
-
The default is ''0'' in the relevant units, or else the property's minimum value if ''0'' in the relevant units is not valid for the property. The default should also be
1245
-
used if the property in question only accepts values within a certain
1246
-
range (e.g. positive lengths or angles from 0 to 90deg) and the
1247
-
attribute is out of range (e.g. a negative length or 180deg).
1248
-
If the unit is a relative length, it must be computed to an absolute length.
1252
+
<dd>
1253
+
The attribute value must parse as a DIMENSION CSS token,
1254
+
and be successfully interpreted as the specified type.
1255
+
The default is ''0'' in the relevant units,
1256
+
or else the property's minimum value if ''0'' in the relevant units is not valid for the property.
1257
+
The default must also be used
1258
+
if the property in question only accepts values within a certain range
1259
+
(e.g. positive lengths or angles from 0 to 90deg)
1260
+
and the attribute is out of range (e.g. a negative length or 180deg).
1261
+
If the unit is a relative length, it must be computed to an absolute length.
1249
1262
1250
1263
<dt>''em''
1251
1264
<dt>''ex''
@@ -1267,10 +1280,17 @@ <h3 id="attr-notation">
1267
1280
<dt>''Hz''
1268
1281
<dt>''kHz''
1269
1282
<dt>''%''
1270
-
<dd>The attribute value will be parsed as a CSS <var><number></var>, with the given
1271
-
type suffixed as a unit to create a dimension with the given unit's type. The default is ''0'' in the relevant
1272
-
units, or else the property's minimum value if ''0'' in the relevant units is not valid for the property.
1273
-
If the unit is a relative length, it must be computed to an absolute length.
1283
+
<dd>
1284
+
The attribute value must parse as a NUMBER CSS token,
1285
+
and is interpreted as a <i>dimension</i> with the specified unit.
1286
+
The default is ''0'' in the relevant units,
1287
+
or else the property's minimum value if ''0'' in the relevant units is not valid for the property.
1288
+
The default must also be used
1289
+
if the property in question only accepts values within a certain range
1290
+
(e.g. positive lengths or angles from 0 to 90deg)
1291
+
and the attribute is out of range (e.g. a negative length or 180deg).
0 commit comments