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

[css3-values] Interchangeable numbers and percentages

From: Rudolph Gottesheim <r.gottesheim@loot.at>
Date: Wed, 19 Oct 2011 11:54:07 +0200
Message-ID: <4E9E9E3F.4050208@loot.at>
To: www-style@w3.org
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%
Received on Wednesday, 19 October 2011 09:54:38 GMT

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