Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / stylesheet-enable-second-alternate-on-load-link.html
blob6efff07f795b7bd20ed5b1fc346d2414fe72e270
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/red.css" media="all" title="green" type="text/css" />
6 <link rel="alternate stylesheet" href="resources/green.css" media="all" title="green" type="text/css" />
7 <script type="text/javascript">
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 function test() {
12 var red = document.getElementsByTagName("link")[0];
13 red.disabled = true;
14 var green = document.getElementsByTagName("link")[2];
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>