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: Tue, 01 Jul 2008 16:09:18 -0500
To: "www-style@w3.org list" <www-style@w3.org>
Message-id: <FB742A5C-A4DF-49B9-9566-5143C0471DD2@apple.com>

On Jul 1, 2008, at 3:59 PM, David Hyatt wrote:

>
> (2) How to use the declaration block:
>
> (a) Make up a fake property.
>
> h1 {
>  includes: headers;
>  font-size: 24px;
> }
>
> (b) Make up a selector "annotation" notation
>
> h1 includes headers {
>  font-size: 24px;
> }
>
> (c) Make up some other kind of syntax
>
> h1 {
>  @includes headers;
>  font-size: 24px;
> }
>
> I believe (b) is the most elegant notation.  The only disadvantage  
> of (b) is that you would not be able to control the precise ordering  
> (i.e., the properties would just occur at the front always and could  
> not be precisely placed).


(b) would also not be usable from within inline style declarations,  
but I also think that is reasonable.

dave
(hyatt@apple.com)
Received on Tuesday, 1 July 2008 21:10:28 GMT

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