WebCore:
[WebKit-https.git] / LayoutTests / media / audio-controls-rendering.html
1 <html>
2     <head>
3         <style>
4             audio { background-color: blue; } 
5         </style>
6         <script>
7             function test()
8             {
9                 if (window.layoutTestController) {
10                     layoutTestController.waitUntilDone();
11                     setTimeout(function() { 
12                         document.body.appendChild(document.createTextNode('FAIL')); 
13                         if (window.layoutTestController)
14                                 layoutTestController.notifyDone();
15                     } , 8000);
16                 }
17                 var count = document.getElementsByTagName('audio').length;
18                 document.addEventListener("load", function () {
19                     if (!--count) {
20                         document.body.offsetLeft;
21                         if (window.layoutTestController)
22                             layoutTestController.notifyDone();
23                     }
24                 }, true);
25             }
26         </script>
27     </head>
28     <body onload="test()">
29         <p>Test controls placement. </p>
30         <audio controls src="content/test.wav"></audio><br><br>
31         <audio controls src="content/test.wav" style="width: 320px;"></audio><br><br>
32         <audio controls src="content/test.wav" style="position: absolute; width: 320px; height: 100px;"></audio><br>
33     </body>
34 </html>