Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLProgressElement / indeterminate-progress-002.html
blobfa74cb52dcbcfe3bb625f6b94983bab273d333ce
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style type="text/css">
5 div { color: red; }
6 progress:indeterminate + #test { color: green; }
7 </style>
8 <script>
9 window.onload = function() {
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 var testDiv = document.getElementById("test");
14 if (getComputedStyle(testDiv, null).getPropertyValue("color") == "rgb(0, 128, 0)")
15 document.getElementById("testresult").innerHTML = "Pass";
16 else
17 document.getElementById("testresult").innerHTML = "Fail";
19 </script>
20 </head>
21 <body>
22 <p>The test passes if the Filler Text below is green.</p>
23 <progress></progress>
24 <div id="test">Filler Text</div>
25 <div id="testresult" style="color: blue">Running</div>
26 </body>
27 </html>