Skip to content

Commit

Permalink
[css-values-4] Clarify that zero terms cannot be removed. #3741
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasai committed Apr 6, 2023
1 parent c0cc7f2 commit 72d9aca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions css-values-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4548,6 +4548,11 @@ Simplification</h4>
return the child.
Otherwise, return |root|.

Note: Zero-valued terms cannot be simply removed from a Sum;
they can only be combined with other values that have identical units.
(This is because the mere presence of a unit, even with a zero value,
can sometimes imply a change in behavior.)

9. If |root| is a Product node:

1. For each of |root|'s children
Expand Down

0 comments on commit 72d9aca

Please sign in to comment.