hue-rotate() is performed with a color matrix based approximation
- 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 with hue-rotate(180deg) :
playground: codepen.io/pen/ExdZMQE
hue-rotate() should perform a hue based rotation.