You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current definition of hue-rotate() is based on an SVG filter, which uses a matrix transformation on RGB color to calculate the resultant color.
This is not very desirable for some usecases, for example, a general CSS userstyle to make pages appear like a "dark mode" with invert(100%) hue-rotate(180deg) on the entire document, then selectively hue-rotate(-180deg) invert(100%) to elements such as images and videos.
I would expect a style like this to undo the effects of the inversion, so the colors of the elements are normally colored.
The actual effect is slightly off-color, due to the limitations of the current method of hue-rotate().
While it is extremely unlikely the current definition can be changed, it would be great if a new effect could be added that behaved as expected.
The current definition of
hue-rotate()
is based on an SVG filter, which uses a matrix transformation on RGB color to calculate the resultant color.This is not very desirable for some usecases, for example, a general CSS userstyle to make pages appear like a "dark mode" with
invert(100%) hue-rotate(180deg)
on the entire document, then selectivelyhue-rotate(-180deg) invert(100%)
to elements such as images and videos.I would expect a style like this to undo the effects of the inversion, so the colors of the elements are normally colored.
The actual effect is slightly off-color, due to the limitations of the current method of
hue-rotate()
.While it is extremely unlikely the current definition can be changed, it would be great if a new effect could be added that behaved as expected.
Relevant discussion:
The text was updated successfully, but these errors were encountered: