diff --git a/lib/dom-styles-reader.js b/lib/dom-styles-reader.js index e14cc323..d0be919c 100644 --- a/lib/dom-styles-reader.js +++ b/lib/dom-styles-reader.js @@ -148,7 +148,7 @@ export default class DOMStylesReader { const dotRegexp = /\.+/g const rgbExtractRegexp = /rgb(a?)\((\d+), (\d+), (\d+)(, (\d+(\.\d+)?))?\)/ -const hueRegexp = /hue-rotate\((\d+)deg\)/ +const hueRegexp = /hue-rotate\((-?\d+)deg\)/ /** * Computes the output color of `value` with a rotated hue defined