@@ -241,7 +241,7 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
241
241
the ‘< code class =css > <percentage> </ code > ’ type</ a >
242
242
243
243
< li > < a href ="#dimensions "> < span class =secno > 4.4. </ span > Numbers with
244
- Units: the ‘ < code class = css > <dimension > </ code > ’ type </ a >
244
+ Units: < i > dimensions </ i > </ a >
245
245
</ ul >
246
246
247
247
< li > < a href ="#lengths "> < span class =secno > 5. </ span > Distance Units: the
@@ -887,40 +887,27 @@ <h3 id=percentages><span class=secno>4.3. </span> Percentages: the ‘<a
887
887
property, the resultant value is the percentage times the < i > initial
888
888
value</ i > of that property.
889
889
890
- < h3 id =dimensions > < span class =secno > 4.4. </ span > Numbers with Units: the
891
- ‘< a href ="#ltdimension "> < code class =css > <dimension> </ code > </ a > ’
892
- type</ h3 >
893
-
894
- < p > A < dfn data-export =data-export id =dimension > dimension</ dfn > value is
895
- denoted by < dfn data-dfn-type =type id =ltdimension > <dimension> </ dfn > and
896
- consists of a < a href ="#number-value "> < i > <number> </ i > </ a > representing
897
- the value immediately followed by an < i > <ident> </ i > representing the
898
- unit. It corresponds to the < i > <dimension-token</ i > syntax production.
890
+ < h3 id =dimensions > < span class =secno > 4.4. </ span > Numbers with Units: < a
891
+ href ="#dimension "> < i > dimensions</ i > </ a > </ h3 >
899
892
900
- < p > The < a href ="#ltdimension "> < i > <dimension> </ i > </ a > type is only used
901
- when writing very generic grammars; in most cases, a more specific type
902
- based on the unit is used instead, such as < a
903
- href ="#length-value "> < i > <length> </ i > </ a > or < a
904
- href ="#time-value "> < i > <time> </ i > </ a > .
893
+ < p > A < dfn id =dimension > dimension</ dfn > is a < a
894
+ href ="#number "> < i > number</ i > </ a > immediately followed by a unit
895
+ identifier. It corresponds to the < a
896
+ href ="#dimension "> < code > DIMENSION</ code > </ a > token in the < a
897
+ href ="http://www.w3.org/TR/CSS21/syndata.html#tokenization "> grammar</ a > .
898
+ < a href ="#ref-CSS21 " rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a > Like
899
+ keywords, unit identifiers are case-insensitive within the ASCII range.
905
900
906
901
< h2 id =lengths > < span class =secno > 5. </ span > Distance Units: the ‘< a
907
902
href ="#length-value "> < code class =css > <length> </ code > </ a > ’ type</ h2 >
908
903
909
904
< p > Lengths refer to distance measurements and are denoted by < dfn
910
905
id =length-value > < var > <length> </ var > </ dfn > in the property definitions.
911
- A length is a < a href ="#dimension0 "> < i > dimension</ i > </ a > . However, for
912
- zero lengths the unit identifier is optional (i.e. can be syntactically
906
+ A length is a < a href ="#dimension "> < i > dimension</ i > </ a > . However, for zero
907
+ lengths the unit identifier is optional (i.e. can be syntactically
913
908
represented as the < a href ="#number-value "> < var > <number> </ var > </ a >
914
909
‘< code class =css > 0</ code > ’).
915
910
916
- < p > A < dfn id =dimension0 > dimension</ dfn > is a < a
917
- href ="#number "> < i > number</ i > </ a > immediately followed by a unit
918
- identifier. It corresponds to the < a
919
- href ="#dimension0 "> < code > DIMENSION</ code > </ a > token in the < a
920
- href ="http://www.w3.org/TR/CSS21/syndata.html#tokenization "> grammar</ a > .
921
- < a href ="#ref-CSS21 " rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a > Like
922
- keywords, unit identifiers are case-insensitive within the ASCII range.
923
-
924
911
< p > Properties may restrict the length value to some range. If the value is
925
912
outside the allowed range, the declaration is invalid and must be < a
926
913
href ="http://www.w3.org/TR/CSS21/conform.html#ignore "> ignored</ a > .
@@ -1249,7 +1236,7 @@ <h3 id=angles><span class=secno>6.1. </span> Angles: the ‘<a
1249
1236
class =css > rad</ code > </ a > ’, ‘< a href ="#turn "> < code
1250
1237
class =css > turn</ code > </ a > ’ units</ h3 >
1251
1238
1252
- < p > Angle values are < a href ="#dimension0 "> < i > dimensions</ i > </ a > denoted by
1239
+ < p > Angle values are < a href ="#dimension "> < i > dimensions</ i > </ a > denoted by
1253
1240
< dfn id =angle-value > <angle> </ dfn > . The angle unit identifiers are:
1254
1241
1255
1242
< dl >
@@ -1281,7 +1268,7 @@ <h3 id=time><span class=secno>6.2. </span> Times: the ‘<a
1281
1268
href ="#s "> < code class =css > s</ code > </ a > ’, ‘< a href ="#ms "> < code
1282
1269
class =css > ms</ code > </ a > ’ units</ h3 >
1283
1270
1284
- < p > Time values are < a href ="#dimension0 "> < i > dimensions</ i > </ a > denoted by
1271
+ < p > Time values are < a href ="#dimension "> < i > dimensions</ i > </ a > denoted by
1285
1272
< dfn id =time-value > <time> </ dfn > . The time unit identifiers are:
1286
1273
1287
1274
< dl >
@@ -1303,7 +1290,7 @@ <h3 id=frequency><span class=secno>6.3. </span> Frequencies: the ‘<a
1303
1290
and ‘< a href ="#hz "> < code class =css > Hz</ code > </ a > ’, ‘< a
1304
1291
href ="#khz "> < code class =css > kHz</ code > </ a > ’ units</ h3 >
1305
1292
1306
- < p > Frequency values are < a href ="#dimension0 "> < i > dimensions</ i > </ a > denoted
1293
+ < p > Frequency values are < a href ="#dimension "> < i > dimensions</ i > </ a > denoted
1307
1294
by < dfn id =frequency-value > <frequency> </ dfn > . The frequency unit
1308
1295
identifiers are:
1309
1296
@@ -1326,7 +1313,7 @@ <h3 id=resolution><span class=secno>6.4. </span> Resolutions: the <a
1326
1313
class =css > dpcm</ code > </ a > ’, ‘< a href ="#dppx "> < code
1327
1314
class =css > dppx</ code > </ a > ’ units</ h3 >
1328
1315
1329
- < p > Resolution units are < a href ="#dimension0 "> < i > dimensions</ i > </ a > denoted
1316
+ < p > Resolution units are < a href ="#dimension "> < i > dimensions</ i > </ a > denoted
1330
1317
by < dfn id =resolution-value > <resolution> </ dfn > . The resolution unit
1331
1318
identifiers are:
1332
1319
@@ -1557,7 +1544,7 @@ <h4 id=calc-syntax><span class=secno>8.1.1. </span> Syntax</h4>
1557
1544
< p > UAs must support ‘< a href ="#calc "> < code
1558
1545
class =css > calc()</ code > </ a > ’ expressions of at least 20 terms, where
1559
1546
each < a href ="#number "> < code > NUMBER</ code > </ a > , < a
1560
- href ="#dimension0 "> < code > DIMENSION</ code > </ a > , or < a
1547
+ href ="#dimension "> < code > DIMENSION</ code > </ a > , or < a
1561
1548
href ="#percentage "> < code > PERCENTAGE</ code > </ a > is a term. If a ‘< a
1562
1549
href ="#calc "> < code class =css > calc()</ code > </ a > ’ expression contains more
1563
1550
than the supported number of terms, it must be treated as if it were
@@ -1579,7 +1566,7 @@ <h4 id=calc-type-checking><span class=secno>8.1.2. </span> Type Checking</h4>
1579
1566
href ="#number "> < code > NUMBER</ code > </ a > tokens are of type < a
1580
1567
href ="#number-value "> < var > <number> </ var > </ a > or < a
1581
1568
href ="#integer-value "> < var > <integer> </ var > </ a > . A < a
1582
- href ="#dimension0 "> < code > DIMENSION</ code > </ a > token's type is given by its
1569
+ href ="#dimension "> < code > DIMENSION</ code > </ a > token's type is given by its
1583
1570
unit (‘< code class =css > cm</ code > ’ is < a
1584
1571
href ="#length-value "> < var > <length> </ var > </ a > , ‘< a href ="#deg "> < code
1585
1572
class =css > deg</ code > </ a > ’ is < a
@@ -2044,7 +2031,7 @@ <h3 id=attr-notation><span class=secno>8.3. </span> Attribute References:
2044
2031
< dt > ‘< code class =css > %</ code > ’
2045
2032
2046
2033
< dd > The attribute value must parse as a NUMBER CSS token, and is
2047
- interpreted as a < a href ="#dimension0 "> < i > dimension</ i > </ a > with the
2034
+ interpreted as a < a href ="#dimension "> < i > dimension</ i > </ a > with the
2048
2035
specified unit. The default is ‘< code class =css > 0</ code > ’ in the
2049
2036
relevant units, or else the property's minimum value if ‘< code
2050
2037
class =css > 0</ code > ’ in the relevant units is not valid for the
@@ -2632,10 +2619,6 @@ <h2 class=no-num id=index>Index</h2>
2632
2619
< li > deg, < a href ="#deg " title ="section 6.1. "> < strong > 6.1.</ strong > </ a >
2633
2620
2634
2621
< li > dimension, < a href ="#dimension "
2635
- title ="section 4.4. "> < strong > 4.4.</ strong > </ a > , < a href ="#dimension0 "
2636
- title ="section 5. "> < strong > 5.</ strong > </ a >
2637
-
2638
- < li > <dimension> , < a href ="#ltdimension "
2639
2622
title ="section 4.4. "> < strong > 4.4.</ strong > </ a >
2640
2623
2641
2624
< li > dpcm, < a href ="#dpcm " title ="section 6.4. "> < strong > 6.4.</ strong > </ a >
0 commit comments