W3C home > Mailing lists > Public > www-style@w3.org > July 2006

[CSS3 color] HSL color example

From: Joost 'AlthA' de Valk <webkit@joostdevalk.nl>
Date: Mon, 3 Jul 2006 14:55:17 +0200
Message-Id: <CEC3CB1B-68ED-4C7F-8ED3-F2F337E66755@joostdevalk.nl>
Cc: David Carson <david.carson@nokia.com>
To: www-style@w3.org

David Carson, Nokia, found out while hacking up HSL and HSLA support  
for WebKit, that the example code for the HSL colors seems wrong:

* { color: hsl(120, 100%, 25%) } /* light green */
* { color: hsl(120, 100%, 75%) } /* dark green */

should actually be:
* { color: hsl(120, 100%, 25%) } /* dark green */
* { color: hsl(120, 100%, 75%) } /* light green */

As the last parameter is lightness, the higher the value, the lighter  
the color.

For those interested, the WebKit Bugzilla id for our HSL and HSLA  
support is: http://bugzilla.opendarwin.org/show_bug.cgi?id=9506 .

Kind regards,
Joost de Valk
Received on Monday, 3 July 2006 13:06:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:45 GMT