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

[css4-color] 4 Parameters in RGB() and HSL()

From: (wrong string) äper <christoph.paeper@crissov.de>
Date: Wed, 25 Jan 2012 15:11:28 +0100
Message-Id: <7BAB0233-376D-4937-BC09-1857916833E5@crissov.de>
To: www-style@w3.org
Several pseudo functions accept different numbers of parameters, the rightmost parameters are then optional, original ones dont change their meaning. In CSS3: Color rgba() and hsla() have been added without taking advantage of this polymorphous capability. They also have been criticized for always denoting the alpha value as a number in the range 0.01.0, not as a percentage.

Could we therefore make 

  rgb(100%, 80%, 60%, 40%)
  hsl(300deg, 60%, 40%, 20%)
  rgb(255, 0, 64, 127)

valid in Level 4?
Received on Wednesday, 25 January 2012 14:11:58 GMT

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