OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .box { | 5 .box { |
6 height: 150px; | 6 height: 150px; |
7 width: 150px; | 7 width: 150px; |
8 } | 8 } |
9 | 9 |
10 div { | 10 div { |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 .composited { | 26 .composited { |
27 -webkit-transform: translateZ(1px); | 27 -webkit-transform: translateZ(1px); |
28 } | 28 } |
29 </style> | 29 </style> |
30 | 30 |
31 <script src="../resources/media-testing.js"></script> | 31 <script src="../resources/media-testing.js"></script> |
32 <script src="../../media/media-file.js"></script> | 32 <script src="../../media/media-file.js"></script> |
33 <script type="text/javascript" charset="utf-8"> | 33 <script type="text/javascript" charset="utf-8"> |
34 if (window.testRunner) | 34 if (window.testRunner) |
35 testRunner.dumpAsText(true); | 35 testRunner.dumpAsTextWithPixelResults(); |
36 | 36 |
37 var counter = 0; | 37 var counter = 0; |
38 function notifyVideoDone() { | 38 function notifyVideoDone() { |
39 counter = counter + 1; | 39 counter = counter + 1; |
40 if ((counter === 3) && (window.testRunner)) | 40 if ((counter === 3) && (window.testRunner)) |
41 testRunner.notifyDone(); | 41 testRunner.notifyDone(); |
42 } | 42 } |
43 | 43 |
44 function doTest() | 44 function doTest() |
45 { | 45 { |
46 setupVideo(document.getElementsByTagName('video')[0], '../resources/vi
deo', null, notifyVideoDone); | 46 setupVideo(document.getElementsByTagName('video')[0], '../resources/vi
deo', null, notifyVideoDone); |
47 setupVideo(document.getElementsByTagName('video')[1], '../resources/vi
deo', null, notifyVideoDone); | 47 setupVideo(document.getElementsByTagName('video')[1], '../resources/vi
deo', null, notifyVideoDone); |
48 setupVideo(document.getElementsByTagName('video')[2], '../resources/vi
deo', null, notifyVideoDone); | 48 setupVideo(document.getElementsByTagName('video')[2], '../resources/vi
deo', null, notifyVideoDone); |
49 } | 49 } |
50 </script> | 50 </script> |
51 </head> | 51 </head> |
52 | 52 |
53 <body onload="doTest()"> | 53 <body onload="doTest()"> |
54 <!-- Tests CSS visibility flag for composited video layers. --> | 54 <!-- Tests CSS visibility flag for composited video layers. --> |
55 <!-- Pixel test only. Only the top video should be visible, the other two sh
ould be hidden (borders should remain visible) --> | 55 <!-- Pixel test only. Only the top video should be visible, the other two sh
ould be hidden (borders should remain visible) --> |
56 <div><video class="visible composited box"></video></div> | 56 <div><video class="visible composited box"></video></div> |
57 <div><video class="hidden box"></video></div> | 57 <div><video class="hidden box"></video></div> |
58 <div><video class="hidden composited box"></video></div> | 58 <div><video class="hidden composited box"></video></div> |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
OLD | NEW |