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

Re: New W3C Note about suggested CSS extensions

From: Daniel GLAZMAN <daniel.glazman@der.edf.fr>
Date: Mon, 04 Jan 1999 05:33:11 +0100
Message-ID: <36904487.CD88C687@der.edf.fr>
To: Jelks Cabaniss <jelks@jelks.nu>
CC: www-style@w3.org


Jelks Cabaniss a écrit :

> >     @define myTheme(x,y) = "color: $x; background: $y;"
> 
> Making CSS a programming language raises the hair on the back of my neck.

In fact, I'd really like to say :

  @define my_property(my_value) { declarations }

  where my_property and my_value are defined as IDENT.

and then use

  my_property : my_value

For instance :

  @define edf-style(visit-card) {
	font-family : frutiger ;
	font-size : 8pt ;
	font-variant : small-caps ;
	text-align : center ;
	margin : 0.2cm 0cm
	}
  ...
  HTML.slide P.identity { edf-style : visit-card ;
               position : absolute ;
               width : 5cm ; height : 2.7cm ;
               right : 0cm ; bottom : 0cm }
  ADDRESS { edf-style : visit-card }

</Daniel>
Received on Monday, 4 January 1999 02:25:33 GMT

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