W3C home > Mailing lists > Public > www-style@w3.org > February 1996

Re: CSS1 Clarification

From: lilley <lilley@afs.mcc.ac.uk>
Date: Tue, 6 Feb 1996 14:38:51 +0000 (GMT)
Message-Id: <27906.9602061438@afs.mcc.ac.uk>
To: Bert.Bos@sophia.inria.fr (Bert Bos)
Cc: jks@uiuc.edu, www-style@w3.org
Sorry this is a bit late, I have been off work for a week.

Bert Bos said:

> How about this: view "font:a/b c d e" as a *macro* (rather than a
> shorthand) for
> 
> 	font-size: a
> 	line-height: b
> 	font-family: c
> 	font-weight: d
> 	font-style: e
> 
> The cascading rules would then be applied *after* the `macro' has been
> expanded. (The word `expanded' is just a way of explaining the
> meaning, it doesn't say that an implementation should actually do
> macro expansion.)
> 
> What do people think?

I think this is helpful. If you are going to have syntactic sugar, it 
is most helpful to explicitly state what it is sugar for.

Does this also mean that automaticly generated stylesheets should 
preferentially use the expanded form? This would seem to make sense,
if the sole reason for the font property is to save a bunch of typing.

-- 
Chris Lilley, Technical Author and JISC representative to W3C 
+-------------------------------------------------------------------+
|  Manchester and North Training & Education Centre   ( MAN T&EC )  |
+-------------------------------------------------------------------+
| Computer Graphics Unit,             Email: Chris.Lilley@mcc.ac.uk |
| Manchester Computing Centre,        Voice: +44 161 275 6045       |
| Oxford Road, Manchester, UK.          Fax: +44 161 275 6040       |
| M13 9PL                            BioMOO: ChrisL                 |
| Timezone: UTC        URI: http://info.mcc.ac.uk/CGU/staff/lilley/ | 
+-------------------------------------------------------------------+
Received on Tuesday, 6 February 1996 09:52:47 GMT

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