- From: Afternoon <afternoon@uk2.net>
- Date: Thu, 30 Oct 2003 19:35:21 +0000
- To: www-style@w3.org
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 UTC