W3C home > Mailing lists > Public > www-style@w3.org > January 2011

[css3-color] Fractional values for HSL

From: Rob Crowther <robertc@boogdesign.com>
Date: Tue, 04 Jan 2011 15:16:26 +0000
Message-ID: <4D2339CA.6010100@boogdesign.com>
To: "www-style@w3.org list" <www-style@w3.org>
The spec doesn't seem to mention: are fractional values allowed in HSL 
notation?  For example if I have a color hsl(210,50%,40%) and want one 
at one third of the level can I use hsl(210,50%,13.3%)?  Is it actually 
going to be any different to hsl(210,50%,13%)?

Firefox and Opera seem to handle it fine, but I'm not sure if they're 
just rounding things internally or something.

Rob
Received on Tuesday, 4 January 2011 15:21:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:35 GMT