Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / stylesheet-enable-first-alternate-on-load-link.html
blobe882ed0a2c4568f4235864a4ba89ee326818cf75
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 function test() {
11 var red = document.getElementsByTagName("link")[0];
12 red.disabled = true;
13 var green = document.getElementsByTagName("link")[1];
14 green.disabled = true;
15 green.disabled = false;
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>