File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -848,8 +848,12 @@ Distance Units: the <<length>> type</h2>
848
848
Lengths refer to distance measurements
849
849
and are denoted by <dfn id="length-value"><length></dfn> in the property definitions.
850
850
A length is a <a>dimension</a> .
851
- However, for zero lengths the unit identifier is optional
851
+
852
+ For zero lengths the unit identifier is optional
852
853
(i.e. can be syntactically represented as the <<number>> ''0'' ).
854
+ However, if a ''0'' could be parsed as either a <<number>> or a <<length>> in a property
855
+ (such as 'line-height' ),
856
+ it must parse as a <<number>> .
853
857
854
858
Properties may restrict the length value to some range.
855
859
If the value is outside the allowed range,
Original file line number Diff line number Diff line change @@ -845,8 +845,12 @@ Distance Units: the <<length>> type</h2>
845
845
Lengths refer to distance measurements
846
846
and are denoted by <dfn id="length-value"><length></dfn> in the property definitions.
847
847
A length is a <a>dimension</a> .
848
- However, for zero lengths the unit identifier is optional
848
+
849
+ For zero lengths the unit identifier is optional
849
850
(i.e. can be syntactically represented as the <<number>> ''0'' ).
851
+ However, if a ''0'' could be parsed as either a <<number>> or a <<length>> in a property
852
+ (such as 'line-height' ),
853
+ it must parse as a <<number>> .
850
854
851
855
Properties may restrict the length value to some range.
852
856
If the value is outside the allowed range,
You can’t perform that action at this time.
0 commit comments