Open woodroof opened 4 months ago
I'm not sure I would call it "incorrectly". Just a different rounding to what you're expecting. It's not a lossless operation to begin with.
Maybe "incorrectly" is not a right word, but still usvg selects not a closest rgb color, and that can be improved.
I can make a PR if you show me a place where this transformation is happening.
+/-1 difference is perfectly normal. But Chrome seems to be rounding up, so should we. Will fix in the next update.
For example,
hsl(230, 57%, 54%)
should be translated to#475dcd
, but usvg returns#465dcc
. r component value is 70.839, so it should be rounded to 71 (0x47).