CSS Selectors - 5. Groups of selectors
A comma-separated list of selectors represents the union of all elements selected by each of the individual selectors in the list.
In other words, #page > a:visited, a:link
represents two separate, unrelated selectors.
Therefore the following:
#page > a:visited,
a:link {}
is not equivalent to:
#page > a:link {}
#page > a:visited {}
You would have to group the entire selector in order to yield the same results:
#page > a:link,
#page > a:visited {}
On a somewhat related side note, if you were using a CSS preprocessor, such as LESS, you could use:
#page > a {
&:visited,
&:link {
color: red;
}
}
Which would compile to the following:
#page > a:visited,
#page > a:link {
color: red;
}