W3C home > Mailing lists > Public > www-style@w3.org > April 2002

CSS3 colour draft: typo in hsl algorithm

From: Ross Smith <rosss@pharos.co.nz>
Date: Fri, 26 Apr 2002 10:42:33 +1200
Message-ID: <79218202D4B9D4118A290002A508E13B79C387@PNZEXCHANGE>
To: "'www-style@w3.org'" <www-style@w3.org>
In section 4.2.4 of the current CSS3 colour working draft
(http://www.w3.org/TR/2002/WD-css3-color-20020418/), there's an
algorithm for converting HSL to RGB representation. It includes the

       IF h<1: PUT h+1 IN h
       IF h>1: PUT h-1 IN h

In that first line, the comparison should be h<0, not h<1 (h>1 in the
second line is correct).

(Incidentally, is there any particular reason why the document includes
an algorithm for HSL->RGB but not RGB->HSL?)

Ross Smith ...................... Pharos Systems, Auckland, New Zealand

"C++ is to programming as sex is to reproduction. Better ways might
technically exist but they're not nearly as much fun." - Nikolai Irgens
Received on Thursday, 25 April 2002 18:43:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:01 UTC