W3C home > Mailing lists > Public > www-validator-css@w3.org > September 2015

CSS validation of a:visited

From: Rob Stampfli <rob@cboh.org>
Date: Mon, 14 Sep 2015 17:25:28 -0400
To: www-validator-css@w3.org
Message-ID: <20150914212528.GA24483@elektro>
Recently, I ran into a snag and took a bit of time to figure out why my
CSS construct

	a:visited { text-decoration: none }

wasn't working.  (It turns out the answer is explained here:)

(Yes, it's really "vistited", not "visited" above.)

It appears most, or maybe all, browsers adhere to the prohibition of only
allowing a limited subset of CSS actions in "a:visited" for security
reasons, even though it is legitimate CSS, but it took me a while to
figure this out.

I wonder if perhaps your CSS validator might better serve the public if it
checked for and issued a warning when encountering such CSS constructs.
Received on Tuesday, 15 September 2015 13:05:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:17 UTC