Skip to content

[filter-effects] hue-rotate() should perform a true hue rotation #8754

@yukulele

Description

@yukulele

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions