W3C home > Mailing lists > Public > www-style@w3.org > October 2003

Re: [CSS3] Generated and Replaced Content - Grouping (long, examples)

From: Afternoon <afternoon@uk2.net>
Date: Thu, 30 Oct 2003 19:35:21 +0000
To: www-style@w3.org
Message-Id: <335DB0EE-0B10-11D8-B79B-000A957E8988@uk2.net>


How about something like:

	dl::sets(start-tag[, end-tag]) {
		color:red;
	}

In your case, you would not need end-tag. A new set would be created 
every time the start-tag is encountered:

	dl::sets(dt) { ... }

Would create the ::pseudo elements you outlined.

>    <dl>
>     <::pseudo>
>      <dt>...</dt>
>      <dd>...</dd>
>     </::pseudo>
>     <::pseudo>
>      <dt>...</dt>
>      <dd>...</dd>
>     </::pseudo>
>     <::pseudo>
>      <dt>...</dt>
>      <dd>...</dd>
>     </::pseudo>
>    </dl>

One useful extension would be to allocate a set of tags as set start 
points:

	dl::sets("h1,h2,h3") { ... }

More parameters could be added to provide more flexibility.

Just a thought.

Ben


(q)	Ben Godfrey?
(a)	Web Developer and Designer
	See http://aftnn.org/ for details
Received on Thursday, 30 October 2003 14:36:09 GMT

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