W3C home > Mailing lists > Public > www-style@w3.org > September 2006

Re: [css3-selectors] :parent selector

From: Alastair Campbell <ac@alastc.com>
Date: Wed, 27 Sep 2006 22:27:10 +0100
Message-ID: <451AECAE.3010703@alastc.com>
To: Anne van Kesteren <annevk@opera.com>
CC: www-style@w3.org

Anne van Kesteren wrote:
> Wouldn't work for things like "see the <a><code>a</code> element</a>".

Fair enough, have there been any agreeable proposals for covering "any 
link which does not contain an image", or "any link that only contains 
text"?

As you can see, the external link highlighting works well on text, but 
not  images:
http://ukwindsurfing.com/news/2005/0511_wojtek-brzozowski-dominates-1st-euro-cup/

That site uses:
a[href$=".pdf"] {...}

But without being able to identify a link that doesn't contain an image, 
referring back up the tree, or selecting the text-node within a link, it 
doesn't seem possible.

Is this not possible without using JavaScript?

Kind regards,

-Alastair
Received on Wednesday, 27 September 2006 21:35:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:47 GMT