Re: [csswg-drafts] [css-color-5] When mixing hue, there are two ways round the hue range (#4735)

LGTM. For readability, I would change it to:

```js
if (0 < θ₂ - θ₁ >  && θ₂ - θ₁ < 180) {
  θ₁ += 360;
}
else if (0 < θ₁ - θ₂ && θ₁ - θ₂ < 180) {
  θ₂ += 360;
}
```

or even (since this is **pseudo**-JS):


```js
if (0 < θ₂ - θ₁ < 180) {
  θ₁ += 360;
}
else if (0 < θ₁ - θ₂ < 180) {
  θ₂ += 360;
}
```

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

Received on Friday, 26 June 2020 01:34:28 UTC