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

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

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 28 Jan 2012 17:36:48 -0800
Message-Id: <F2814664-5298-40B5-ACE4-D213D5090349@gmail.com>
Cc: Christoph Päper <christoph.paeper@crissov.de>, www-style list <www-style@w3.org>
To: Alan Gresley <alan@css-class.com>
On Jan 27, 2012, at 5:05 PM, Alan Gresley <alan@css-class.com> wrote:

> On 27/01/2012 11:54 PM, Christoph Päper wrote:
>> Alan Gresley<alan@css-class.com>:
>> 
>>> This break backwards compatibility so they should be invalid.
>> 
>> How so? Other functions have learned new arguments, too.
> 
> rgb(<integer>,<integer>,<integer>,<integer>)
> 
> The above could be this.
> 
> rgb(255,0,255,0)
> 
> Currently all modern browsers will treat this as invalid. So to allow it breaks with backwards compatibility.

No worse than almost every other new property or value. It is easy to have fallback until it is no longer needed (years from now).

    color: rgb(255,0,255)
    color: rgb(255,0,255,1)
    background-color: rgba(255,255,0,0.3)
    background-color: rgb(255,255,0,0.3)
Received on Sunday, 29 January 2012 01:37:19 GMT

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