MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/:visited
Article mentions that background-color is a supported style of :visited, but this is partially true. The style only works if the anchor tag already has a background color property. Otherwise, it is ignored.
Privacy restrictions
A note regarding this behavior.
Yes, I created a codepen with this demonstrated.
https://codepen.io/nessthehero/pen/poNNdoQ
MDN Content page report details
en-us/web/css/_colon_visitedI can update this 👍
What would be the best? Shall I put a paragraph below the enumeration of the css properties
Allowable CSS properties are color, background-color, border-color, border-bottom-color, border-left-color, border-right-color, border-top-color, column-rule-color, outline-color, text-decoration-color, and text-emphasis-color.
Note: background-color will only be applicable if the anchor tag already has the background-color property.
Also I haven't tried it but I would assume that this behavior will be the same for the other css properties.
@CreaTorAlexander I assigned it to you.
Perhaps start with the note and then add additional properties once it's in?
The commit message then could have a „relates to #
This is actually covered in the examples and the info above them: https://developer.mozilla.org/en-US/docs/Web/CSS/:visited#examples
So this is not specific to background-color, as the text explains, the example then goes on to show setting a background-color. I don't think we need to duplicate this information.
Thanks @rachelandrew ; yeah, looks like we can close this.
Most helpful comment
This is actually covered in the examples and the info above them: https://developer.mozilla.org/en-US/docs/Web/CSS/:visited#examples
So this is not specific to background-color, as the text explains, the example then goes on to show setting a background-color. I don't think we need to duplicate this information.