Styling a visited link

I am trying to style a visited link and having mixed success in getting it to work - not much to be truthful.

Opera (latest) seems to work (after refreshing the page) but the others dont.

It may be that my CSS is s**t so if someone with better CSS savvy than me can have a look I would be grateful.

David

http://www.deltadesign.co/fw_examples/CSSstuff/tickboxstyle.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I can style everything reliably about the visited link style except the
background image attribute. The visited background image holds until the
cursor enters the viewport, then reverts to the regular link. This makes me
think it is deliberate browser behavior. I read an article which indicated
the visited background-image attribute was disallowed in current browsers
because it could be exploited to track user link clicks and therefore lead
to potential bad behavior.


Ernie Simpson

On Tue, Jul 31, 2012 at 4:13 PM, DeltaDave email@hidden wrote:

I am trying to style a visited link and having mixed success in getting it
to work - not much to be truthful.

Opera (latest) seems to work (after refreshing the page) but the others
dont.

It may be that my CSS is s**t so if someone with better CSS savvy than me
can have a look I would be grateful.

David

http://www.deltadesign.co/fw_examples/CSSstuff/tickboxstyle.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Ernie

Yes it would appear after some digging I have found that certain attributes have been disallowed in modern browsers to prevent querying of a users browser history. In other words they could be used to find out exactly what sites you have visited.

As a result Mozilla - and others - have said.

We’re limiting the CSS properties that can be used to style visited links to color, background-color, border-*-color, and outline-color and the color parts of the fill and stroke properties.

Personally I find this to be a bit much to impose willy nilly without giving the user the option to choose. There must be many sites out there whose user interface is broken by this.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This seems to be a fairly fragile reason – I can think of a way to figure out a visitor’s history using any of those properties – it’s easy enough to figure out a link’s current border color or other attribute, just as easy as it would be to figure out the background image.

Walter

$$('.test').each(function(elm){
	if(elm.getStyle('border-color') == 'fuscia'){
		alert('You've been at ' + elm.readAttribute('href') + '. Cheeky monkey!');
	}
});

On Aug 1, 2012, at 2:22 AM, DeltaDave wrote:

Hi Ernie

Yes it would appear after some digging I have found that certain attributes have been disallowed in modern browsers to prevent querying of a users browser history. In other words they could be used to find out exactly what sites you have visited.

As a result Mozilla - and others - have said.

We’re limiting the CSS properties that can be used to style visited links to color, background-color, border-*-color, and outline-color and the color parts of the fill and stroke properties.

Personally I find this to be a bit much to impose willy nilly without giving the user the option to choose. There must be many sites out there whose user interface is broken by this.

http://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options