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

Re: Grouped stylesheet statements

From: Chris Lilley <Chris.Lilley@sophia.inria.fr>
Date: Mon, 28 Jul 1997 15:54:06 +0200 (MET)
Message-Id: <9707281554.ZM15447@grommit.inria.fr>
To: Stuart Harris <sirrah@baluga.maximumaccess.com>, www-style@w3.org
On Jul 26,  8:21am, Stuart Harris wrote:

> I'm beginning to find the needs of Dynamic HTML are forcing me to write
> repetitive style statements

> It would be convenient to have accepted notation for defining all four
> (or however many) at once. I can't find any such notation in the current
> CSS docs, so I propose that it be considered for a future version.
> Perhaps something such as...
>
> #player1pic;
> #player2pic;
> #player3pic;
> #player4pic;
> {
>   position: absolute; top: 5; left: 300; visibility: hidden;
> }

There already is a notation for assigning the same declarations to a bunch of
different selectors [1]. In your example

 #player1pic,
 #player2pic,
 #player3pic,
 #player4pic
 {
   position: absolute; top: 5; left: 300; visibility: hidden;
 }

[1] http://www.w3.org/TR/REC-CSS1#grouping

-- 
Chris Lilley, W3C                          [ http://www.w3.org/ ]
Graphics and Fonts Guy            The World Wide Web Consortium
http://www.w3.org/people/chris/              INRIA,  Projet W3C
chris@w3.org                       2004 Rt des Lucioles / BP 93
+33 (0)4 93 65 79 87       06902 Sophia Antipolis Cedex, France
Received on Monday, 28 July 1997 09:57:42 GMT

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