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

[CSS3] selectors: parent combinator?

From: <patricka@mkdoc.com>
Date: Fri, 2 May 2003 12:29:41 +0100
To: www-style@w3.org
Message-ID: <20030502112941.GB22533@mango.webarchitects.co.uk>

hi all,

somebody please hit me with a clue stick. :)

i can't see (with css3 selectors) how to select a paragraph containing,
say a defining instance of a term.

<p>HyperText Markup Language, or <dfn>HTML</dfn>, is ...</p>

maybe it's just me, but i've often found myself confused with the
"direction" of combinators -- i even thought that the descendent
combinator would apply:

p dfn
  border-left: solid #000;

(but that catches the definition, not the paragraph.)

the intent here is to highlight reference text better.

i suppose i'm after a "parent combinator", or something...

p < dfn
  border-left: solid #000;

is there a way to do this with selectors without changing the example's
html (i.e. adding class/id attributes on the paragraph)?


- p
Received on Friday, 2 May 2003 07:29:40 UTC

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