Re: [libcroco-list] more on selectors



On Sun, Dec 14, 2003 at 11:09:48AM -0500, Stefan Seefeld wrote:
> Dodji Seketeli wrote:
> 
> >As an example, let consider the xml document (doc.xml):
> >============
> ><?xml version="1.0" ?>
> ><root><A/><B/></root>
> >======================
> >
> >and the CSS stylesheet (doc.css)
> >==================
> >A + B {
> >  color: b-color ;
> >}
> >=================
> >
> >The ruleset A + B {..} correctly selects the element <B/> of the
> >doc.xml.
> 
> hmm, the way I read the spec means 'A' should be selected, not 'B'.
> (i.e. 'an A if followed by a B', the equivalent of the xpath 'a[b]').

http://www.w3.org/TR/CSS2/selector.html#adjacent-selectors
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]