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

Re: Proposal for adding variable declaration blocks

From: David Hyatt <hyatt@apple.com>
Date: Wed, 02 Jul 2008 00:40:01 -0500
To: Brad Kemper <brkemper@comcast.net>
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org list" <www-style@w3.org>
Message-id: <2F0C095F-DF77-41A0-BB97-4EECCF0A8850@apple.com>
On Jul 2, 2008, at 12:20 AM, Brad Kemper wrote:

>
> On Jul 1, 2008, at 4:07 PM, fantasai wrote:
>
>> Another idea:
>>
>>  /* http://lists.w3.org/Archives/Public/www-style/2008Apr/0183.html  
>> */
>>
>>  @define for screen {
>>    foregroundColor: blue;
>>    backgroundColor: green;
>>  }
>>
>>  @define boxStyle {
>>    border: 3pt solid;
>>    padding: 6pt;
>>  }
>>
>>  @define buttonStyle for screen {
>>    border: outset silver;
>>    background: silver;
>>  }
>
> I like this, except for "for screen". Putting it all in an @media  
> screen block should be enough, if you want to limit it to one media  
> type.
>
> What I like: It is very simple and easy to remember and use. @define  
> is used for different types of variables (singletons or groups), and  
> it is the structure that determines how it is used. I like this much  
> more than the proposals with multiple names for the various flavors  
> (@values, @property-set).
>

I like this syntax also.  I think it's very elegant.
Received on Wednesday, 2 July 2008 05:40:43 GMT

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