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

Re: Regarding Comma Separation

From: HeroreV <herorev@yahoo.com>
Date: Mon, 16 Jan 2006 17:49:16 -0800 (PST)
Message-ID: <20060117014916.64316.qmail@web50110.mail.yahoo.com>
To: W3C Style List <www-style@w3.org>

--- Ben Ward <benmward@gmail.com> wrote:

> At the moment background-image is a sting, but using
> an indexed syntax changes it to an array. That's
> hugely relevant to DOM Scripting (and I suspect
> also to the internals of existing web browsers).
> It's not backwards compatible with the 'old'
> background property, so it's really not an option.

The new arrays in the CSS-OM could have plural names.
Setting a value for backgroundImages[0] would also set
a value for backgroundImage.

This is similar to how setting a value for
element.style.background can also set values for
element.style.backgroundColor, etc.

This method would also make testing for support of
multiple backgrounds easier.

Alternatively, the UA could just grab any assignments
to backgroudImage and automatically set it to
backgroundImage[0]. It's going to have to examin all
assignments anyway.

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
Received on Tuesday, 17 January 2006 01:49:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:22 UTC