W3C home > Mailing lists > Public > www-style@w3.org > January 2010

Re: proposal for a new css combinator

From: Alan Gresley <alan@css-class.com>
Date: Wed, 13 Jan 2010 23:25:34 +1100
Message-ID: <4B4DBBBE.4080106@css-class.com>
To: Niels Matthijs <niels.matthijs@internetarchitects.be>
CC: www-style list <www-style@w3.org>
Niels Matthijs wrote:
> Hi all,
> 
>  
> 
> I'm quite sure that someone before me must've thought about this, or
> maybe I just didn't look closely enough at the latest specs, but I
> believe we are missing an important css combinator. 
> 
> For the full explanation you can check the following article:
> http://www.onderhond.com/blog/work/missing-css-combinator
> 
> In short, I'd like something between the space and child combinator. A
> combinator that allows for an (x) number of levels between parent and
> child, but stops at the first matching level it hits.

(snip)
> Greets,
> 
> Niels Matthijs
> 
> Internet Architects


Would this be a possible solution.

.focusBlock>header, .focusBlock *>header {
// style rules //
}

or

.focusBlock>header, .focusBlock>* header {
// style rules //
}





-- 
Alan http://css-class.com/
Received on Wednesday, 13 January 2010 12:26:25 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:23 GMT