layout/reftests/css-visited/link-root-1.xhtml

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <?xml version="1.0"?>
     2 <!DOCTYPE html>
     3 <a xmlns="http://www.w3.org/1999/xhtml"
     4    href="http://www.example-notvisited.tld" class="reftest-wait">
     5 <style>
     6 <![CDATA[
     8 a { display: block; width: 100%; height: 100% }
    10 :link { background: red }
    11 :visited { background: green }
    13 ]]>
    14 </style>
    15 <script>
    16 <![CDATA[
    18 var a = document.documentElement;
    19 getComputedStyle(a, "").backgroundColor; // flush style
    20 a.href = "";
    21 getComputedStyle(a, "").backgroundColor; // flush style
    22 document.documentElement.removeAttribute("class");
    24 ]]>
    25 </script>
    26 </a>

mercurial