1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/css-visited/link-root-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,26 @@ 1.4 +<?xml version="1.0"?> 1.5 +<!DOCTYPE html> 1.6 +<a xmlns="http://www.w3.org/1999/xhtml" 1.7 + href="http://www.example-notvisited.tld" class="reftest-wait"> 1.8 +<style> 1.9 +<![CDATA[ 1.10 + 1.11 +a { display: block; width: 100%; height: 100% } 1.12 + 1.13 +:link { background: red } 1.14 +:visited { background: green } 1.15 + 1.16 +]]> 1.17 +</style> 1.18 +<script> 1.19 +<![CDATA[ 1.20 + 1.21 +var a = document.documentElement; 1.22 +getComputedStyle(a, "").backgroundColor; // flush style 1.23 +a.href = ""; 1.24 +getComputedStyle(a, "").backgroundColor; // flush style 1.25 +document.documentElement.removeAttribute("class"); 1.26 + 1.27 +]]> 1.28 +</script> 1.29 +</a>