Join GitHub today
[css-color-3] HSL examples show incorrect RGB values #3088
However, the RGB values in the example tables do not match the output of the algorithm.
For example, in the "0° Reds" example table, Saturation=100% and Lightness=88 is shown to have the RGB value
However, running the following ABC program (the algorithm from the spec plus the additional line
Of the 540 examples, 251 of them appear not to match the reference algorithm.
I'm assuming the given algorithm is meant to be considered authoritative and the example tables are not--is that a correct assumption?
If so, can the example tables be fixed to have correct RGB values? Or alternatively, at least add a note that the example tables only provide "close" and not accurate values for the purposes of illustration?
How very odd, especially as the tables are supposed to be direct from the program.
You are correct about the hsl(0, 100%, 88%) testcase which should indeed give #FFC2C2
Thanks for the bug report, will check further and issue an erratum.
Meanwhile the algorithm is authoritative over the example tables (which should still be corrected).