Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / stylesheet-enable-first-alternate-link.html
blob7e8ab7978764cb4e865905ef6283d80a7a8642f1
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="resources/red.css" media="all" title="Default Style Sheet" type="text/css" />
5 <link rel="alternate stylesheet" href="resources/green.css" media="all" title="green" type="text/css" />
6 <script type="text/javascript">
7 if (window.testRunner)
8 testRunner.dumpAsText();
10 var red = document.getElementsByTagName("link")[0];
11 red.disabled = true;
12 var green = document.getElementsByTagName("link")[1];
13 green.disabled = true;
14 green.disabled = false;
16 function test() {
17 var console = document.getElementById("console");
18 if (getComputedStyle(console, null).backgroundColor === "rgb(0, 128, 0)")
19 console.innerHTML = "PASSED";
20 else
21 console.innerHTML = "FAILED, background = " + getComputedStyle(console, null).backgroundColor;
23 window.addEventListener("load", test, false);
24 </script>
25 </head>
26 <body>
27 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=65140">65140</a>: REGRESSION (r84327-r84329): CSS stylesheets fail to load on www.flagstar.com login page</p>
28 <p>This test PASSED if PASSED is written below (alternatively the next line should have a GREEN background).</p>
29 <div id="console">FAILED</div>
30 </body>
31 </html>