rgb(100%, 100%, 100%) should convert to white / #fff / hsl(0, 0%, 100%). Instead it converts to rgb(100, 100, 100) or #646464 which is gray, not white.
Pretty sure it has to do with a parseInt value that shouldn't parseInt until we know whether a % character is present in the string.
0 values when used with percentages, e.g. rgb(0, 50%, 50%) (should convert to #008080 as rgb(0%, 50%, 50%) does in Chrome). In this case, the color input gets updated. The swatch does not.
rgb(100%, 100%, 100%)
should convert towhite
/#fff
/hsl(0, 0%, 100%)
. Instead it converts torgb(100, 100, 100)
or#646464
which is gray, not white.Pretty sure it has to do with a
parseInt
value that shouldn't parseInt until we know whether a%
character is present in the string.