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

Re: [Selectors4] Semantic Pseudo Elements

From: Øyvind Stenhaug <oyvinds@opera.com>
Date: Wed, 11 May 2011 11:08:04 +0200
To: www-style@w3.org
Message-ID: <op.vva7nqg5bunlto@oyvinds-desktop>
On Tue, 10 May 2011 20:23:51 +0200, Tab Atkins Jr. <jackalmage@gmail.com>  

> Note that :link only
> exists in the first place for legacy reasons, as attribute selectors
> didn't exist in CSS1, but people wanted to style links differently
> from named anchors (which both used the <a> element in HTML4).  If we
> were writing CSS from scratch today we wouldn't include it, as (a)
> using @name to make anchors is deprecated, as @id on any element works
> better, and (b) you can now just use a[href] to select <a> elements
> that are specifically links.

This is somewhat of a digression, but no, that's not actually the same  
thing. The :link pseudo-class only matches unvisited links, so it's still  

Øyvind Stenhaug
Core Norway, Opera Software ASA
Received on Wednesday, 11 May 2011 09:08:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:45 UTC