Implement pseudo class visited