:visited
is a known danger when a malicious site can get to know what other sites you have visited before using a call to getComputedStyle()
, and it can be done at a speed of up to 210 thousand checks per minute (in Safari much more).getComputedStyle
(and functions such as querySelector
) will no longer be completely true. It will return such a value as if the user has never visited the specified address;color, background-color, border-*-color, outline-color, fill
and stroke
. Otherwise, the style that would be used for unvisited will be used to style the visited links. Also, to set the values of the above CSS properties, you cannot use the rgba()
and hsla()
functions and use transparency with them.:visited
selector and how the changes described will affect your sites. If you think that these changes will seriously violate something, we would like to at least document these features. We ask in the comment .Source: https://habr.com/ru/post/89537/
All Articles