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

Re: [css4-color] <number> in HSL

From: Marat Tanalin | tanalin.com <mtanalin@yandex.ru>
Date: Sat, 28 Jan 2012 16:43:50 +0400
To: Lea Verou <leaverou@gmail.com>
Cc: www-style list <www-style@w3.org>
Message-Id: <230001327754630@web25.yandex.ru>
28.01.2012, 06:12, "Lea Verou" <leaverou@gmail.com>:
> Since we're having discussions about simplifying HSLA/RGBA, how about
> allowing <number> for saturation and lightness (0-1) too? It currently
> only allows for percentages, so there's not going to be any conflict.
>
> Example: hsl(60, .5, 1) as equivalent to hsl(60, 50%, 100%)
>
> --
> Lea Verou (http://lea.verou.me | @LeaVerou)

Sounds reasonable. In a more comprehensive sense, we could allow both notations (0-1 and 0%-100%) anywhere where only one of them is currently allowed.
Received on Saturday, 28 January 2012 12:44:29 GMT

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