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

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 UTC