Closed danielemaddaluno closed 7 months ago
In this pull request I have just added a couple of tests in the CssRenderTest.kt
, similar to the ones that I have written above.
I think I have added the small edit to manage the NaN with percentUnits = true. Sorry @ajalt if I have made it separately with two separated pull request (one for tests and one for the fix). If you prefer I can add the two edits of the two files in a singular pull request, let me know.
Thanks for the contribution! Yes, please combine them into one PR.
Here I paste a couple of codes written in Java to replicate the error that I'm getting. The point is that the same
formatCssString
is working fine if theunitsPercent
are set tofalse
. When you set them totrue
with a colorHSV
orOklch
, it will throw an exception.The first code is for HSV:
The second for Oklch:
And this is the stacktrace: