Files
tubestation/layout/reftests/css-visited/link-root-1.xhtml
Emilio Cobos Álvarez 835441dda4 Bug 1595285 - Do not track TRANSITION_EMBED visits for link-coloring purposes. r=mak
Other browsers don't, plus it blocks work I want to do to query multiple links
at the same time.

Differential Revision: https://phabricator.services.mozilla.com/D52443
2019-11-13 16:36:09 +00:00

27 lines
550 B
HTML

<?xml version="1.0"?>
<!DOCTYPE html>
<a xmlns="http://www.w3.org/1999/xhtml"
href="http://www.example-notvisited.tld" class="reftest-wait">
<style>
<![CDATA[
a { display: block; width: 100%; height: 100% }
:link { background: red }
:visited { background: green }
]]>
</style>
<script>
<![CDATA[
var a = document.documentElement;
getComputedStyle(a, "").backgroundColor; // flush style
a.href = "visited-page.html";
getComputedStyle(a, "").backgroundColor; // flush style
document.documentElement.removeAttribute("class");
]]>
</script>
</a>