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

Re: [css3-values] Interchangeable numbers and percentages

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 19 Oct 2011 10:29:44 -0400
Message-ID: <4E9EDED8.7000709@mit.edu>
To: Boris Zbarsky <bzbarsky@mit.edu>
CC: Rudolph Gottesheim <r.gottesheim@loot.at>, www-style@w3.org
On 10/19/11 10:14 AM, Boris Zbarsky wrote:
> On 10/19/11 5:54 AM, Rudolph Gottesheim wrote:
>> Why aren't numbers and percentages completely interchangeable? The %
>> sign is just a constant with the value of 1/100 after all. So what 30%
>> really means is the following equasion: 30 x 0.01 = 0.3. I think we
>> should be able to use numbers whereever we can use percentages and vice
>> versa. For example:
>>
>> hsl(90, .3, .9)
>> opacity: 80%
>
> width: 100

Or more to the point, "width: 1.0".

-Boris
Received on Wednesday, 19 October 2011 14:30:27 GMT

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