⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

"Added rule for :visited and :link styles can only differ by color."#372

Open
chase-martin wants to merge 1 commit intoCSSLint:masterfrom
chase-martin:master
Open

"Added rule for :visited and :link styles can only differ by color."#372
chase-martin wants to merge 1 commit intoCSSLint:masterfrom
chase-martin:master

Conversation

@chase-martin
Copy link

"Added rule for ':visited and :link styles can only differ by color.' See: http://msdn.microsoft.com/en-us/library/ie/hh180764(v=vs.85).aspx and https://developer.mozilla.org/en-US/docs/CSS/Privacy_and_the_:visited_selector for details."

@stubbornella
Copy link
Member

I thought for the most part browsers didn't allow you to interrogate the visited styles of a link anymore? Have I misunderstood?

@stubbornella
Copy link
Member

Oh, I think I see on the moz link, basically other styles won't be applied anyway. Is that true across browsers?

@XhmikosR
Copy link
Member

I'd like to have a check for this, but from https://developer.mozilla.org/en-US/docs/Web/CSS/Privacy_and_the_:visited_selector#Limits_to_visited_link_styles I see

Only the following properties can be applied to visited links:

  • color
  • background-color
  • border-color (and its sub-properties)
  • outline-color
  • The color parts of the fill and stroke properties

So, perhaps this could be extended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants