W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: [CSS Variables] WebKit now supports variable declaration blocks

From: Brad Kemper <brkemper@comcast.net>
Date: Thu, 31 Jul 2008 07:35:01 -0700
Cc: Bjoern Hoehrmann <derhoermi@gmx.net>, "www-style@w3.org List" <www-style@w3.org>
Message-Id: <E4780F6F-0BF0-43AE-808A-D39939BAE332@comcast.net>
To: David Hyatt <hyatt@apple.com>


On Jul 30, 2008, at 12:18 PM, David Hyatt wrote:

> On Jul 30, 2008, at 2:14 PM, Brad Kemper wrote:
>
>> On Jul 30, 2008, at 11:33 AM, David Hyatt <hyatt@apple.com> wrote:
>>
>>>
>>> Why can't the core syntax change?  All browsers seem to error  
>>> recover fine.
>>>
>>> dave
>>>
>>> On Jul 30, 2008, at 9:34 AM, Bjoern Hoehrmann wrote:
>>>
>>>> * David Hyatt wrote:
>>>>> div {
>>>>> background-color: green;
>>>>> -webkit-var(complexVariable);
>>>>> color: white;
>>>>> }
>>>>
>>>> Allowing such syntax would require changing the core syntax that  
>>>> is not
>>>> supposed to change, you cannot use '(' before the colon and you  
>>>> have to
>>>> have a colon there.
>>>> -- 
>>>> Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
>>
>> I don't have a problem with a change to the core syntax, if it is a  
>> change that makes sense. But if it does matter, we could go with  
>> something more conforming, like this:
>>
>> div {
>> background-color: blue;
>> var-group: $complex-variable;
>> color:white;
>> }
>>
>> Not sure we need the dollar sign there any more though with that.
>
> That is in fact how WebKit implements this under the hood (using a  
> synthetic property).
>
> I still favor the property/value syntax,

Me too.

> since it enables manipulation through the CSS OM of the insertion  
> points.  Others expressed concerns over using that syntax though.

Weren't those just purists that would be just as dissatisfied with the  
single word alternative?

> dave
> (hyatt@apple.com)
>
Received on Thursday, 31 July 2008 14:35:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT