Re: [csswg-drafts] [css-syntax-3][css-values-4] Add informative note about tokenization of negative 0 (#7472)

> It is valid CSS.

Right, and that was the problem - I was trying to refer to a negative zero, but `-0` in CSS does not produce a negative zero, it just produces the unsigned zero. So writing something that appears to be interpretable as CSS, but refers to something other than what that CSS would produce, was misleading. That's why I switched to the 0<sup>-</sup> notation instead, as it's clearly not CSS, and thus can't be misread in that way.

> So calc(-1 / -0) would result to -infinity?

Right. Like I said, "This is why all the examples in V&U that talk about negative zero produce it via a calculation", rather than writing `-0` because that won't work, per spec.

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


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

Received on Friday, 24 March 2023 16:57:55 UTC