Re: [csswg-drafts] [css-values] Clarifying serialization of negative zero and expression simplification (#9750)

These tests are relatively recent. I am pretty sure `calc(1 / -0)` was serializing to `calc(infinity)` in Chrome and FF before. Besides:

  > [Signed zeros](https://drafts.csswg.org/css-values-4/#css-signed-zero) (indicated here as 0⁺ or 0⁻) can not be written directly in CSS; 0, +0 and -0 all produce the standard "unsigned" zero, which is considered positive (0⁺) for the purposes of these rules.

Based on #7472, CSS were *inadvertently* producing tokens representing a negative zero. Now I am not sure whether *interpreting `number part` as a base-10 number* still implies it or not. `min(1% / -infinity, 1% / infinity)` may serialize to `min(-1 * 0%, 0%)` or `min(-0%, 0%)` depending on this.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9750#issuecomment-1970531825 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 29 February 2024 07:04:57 UTC