Skip to content

Commit d25b875

Browse files
nainarshans
authored andcommitted
clean up CSSNumericValue.equals and remove assumption in last step. (#452)
1 parent 77a3628 commit d25b875

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-typed-om/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -838,15 +838,15 @@ The following are the arithmetic operations you can perform on dimensions:
838838

839839
2. Let |thisAndValues| be |this| prepended to |values|.
840840

841-
3. If all |item|s of |thisAndValues| do not belong to the same class return false. Example: all items in |thisAndValues| must be {{CSSUnitValue}}.
841+
3. If all |item|s in |thisAndValues| do not belong to the same class return false. Example: all items in |thisAndValues| must be of type {{CSSUnitValue}}.
842842

843-
4. If all |item|s in |thisAndValues| are {{CSSUnitValue}s and have the same {{CSSUnitValue/unit}} and {{CSSUnitValue/value}} return true.
843+
4. If all |item|s in |thisAndValues| are of type {{CSSUnitValue}} and have the same {{CSSUnitValue/unit}} and {{CSSUnitValue/value}} return true.
844844

845-
5. If all |item|s in |thisAndValues| are {{CSSMathValue}}s :
845+
5. If all |item|s in |thisAndValues| are of type {{CSSMathValue}}:
846846
1. If |thisAndValues| are all either {{CSSMathSum}}, {{CSSMathProduct}}, {{CSSMathMin}} or {{CSSMathMax}}, iterate over the {{CSSNumericArray}}s on |thisAndValues|,
847847
1. For each {{CSSNumericValue}} in each of the {{CSSNumericArray}}s go back to step 1 to check that the {{CSSUnitValue}}s on all items in |thisAndValues| are equal.
848848
2. If |thisAndValues| are all either {{CSSMathNegate}} or {{CSSMathInvert}}:
849-
1. Go back to step 1 to check that the {{CSSUnitValue}} on all items in |thisAndValues| are equal.
849+
1. Go back to step 1 to check that the {{CSSNumericValue}} on all items in |thisAndValues| are equal.
850850
</div>
851851

852852

0 commit comments

Comments
 (0)