- From: Clément P via GitHub <sysbot+gh@w3.org>
- Date: Sun, 23 Apr 2023 15:14:37 +0000
- To: public-css-archive@w3.org
yukulele has just created a new issue for https://github.com/w3c/csswg-drafts: == [filter-effects] hue-rotate() should perform a true hue rotation == [`hue-rotate()`](https://drafts.fxtf.org/filter-effects/#funcdef-filter-hue-rotate) is performed with a [color matrix based approximation](https://drafts.fxtf.org/filter-effects/#ref-for-element-attrdef-fecolormatrix-values%E2%91%A3) * this often gives very bad results, especially with saturated colors (like `#ff0000`, `#ffff00`, `#0000ff`). * this is not reversible (`filter: hue-rotate(60deg) hue-rotate(-60deg);` ≠ `filter: hue-rotate(0deg);` * this is not what we expect of a hue-rotate function * there is no easy workaround * why is this approximation used? (and where do the used values come from?) Example `hue-rotate(180deg)` : <img src='https://user-images.githubusercontent.com/347244/233847057-c2de503f-4fda-4bbd-ba97-6ff1bb1b758b.png' width='500'> \ playground: [codepen.io/pen/ExdZMQE](https://codepen.io/pen/ExdZMQE) `hue-rotate()` shoud perform a `hue-based()` rotation Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8754 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 23 April 2023 15:14:39 UTC