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

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

From: Ernest Cline <ernestcline@mindspring.com>
Date: Thu, 30 Oct 2003 15:39:10 -0500
Message-ID: <410-2200310430203910390@mindspring.com>
To: "Chris Moschini" <cmoschini@myrealbox.com>, "W3C CSS List" <www-style@w3.org>

> [Original Message]
> From: Chris Moschini <cmoschini@myrealbox.com>
> Ian Hickson [ian@hixie.ch] wrote:
> >    <::pseudo>
> >     <dt>...</dt>
> >     <dd>...</dd>
> >    </::pseudo>
> > A solution could be:
> >
> >   dl::pseudo(from the earliest ungrouped dt,
> >              including all the dts that immediately follow it,
> >              including all the dds that immediately follow _that_,
> >              and stopping just before the next dt or the end of parent)
> But selectors aren't.
> dl::pseudo( dt + dd )
> Could that do the job?

No because, it assumes that such a group consists of only
a single dt and s single dd whereas what is wanted is
something that could handle a regular expression like:
dl:pseudo(regexp( dt(\+dt)*(\+dd)+ ))

However, trying to fit it into CSS syntax seems like a rather
complicated task for a pedantic case.  Frankly, such
grouping is IMO better left to the structure. In (X)HTML
<div> and <span> handle this in most cases. with the
grouping of items in lists being the exception.
There are proposals to add such an element or
elements in XHTML 2.0.  Trying to remedy such
deficiencies in CSS strikes me as the wrong approach.
Received on Thursday, 30 October 2003 15:39:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:09 UTC