Re: [csswg-drafts] [css-values-4] Agressively simplifying a Sum node can change the sign of 0 (#13919)

Sorry for this bad example. I initially thought the sign of `-0` would be `-1` instead of `-0`.

But this is definitely observable in this simpler example:

```html
<div>
  <div id=element></div>
</div>
<script>
  const resolved = getComputedStyle(element)
  element.style.order = 'calc( 1 / ( (-1 * 0) - (1 - sibling-count()) ) )'
  resolved.order; // positive in Chrome, 0 in Firefox (initial value)
  style.order =         'calc( 1 / ( (-1 * 0) - (1 - 1) ) )'
  resolved.order; // negative in Chrome and Firefox
</script>
```

Not sure what is going on in Firefox.

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


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

Received on Thursday, 14 May 2026 16:02:53 UTC