| 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 { |
| 11 width: 150px; | 11 width: 150px; |
| 12 margin: 5px; | 12 margin: 5px; |
| 13 padding: 5px; | 13 padding: 5px; |
| 14 border: 1px solid black; | 14 border: 1px solid black; |
| 15 } | 15 } |
| 16 | 16 |
| 17 .hidden { | 17 .hidden { |
| 18 visibility: hidden; | 18 visibility: hidden; |
| 19 } | 19 } |
| 20 | 20 |
| 21 .visible { | 21 .visible { |
| 22 visibility: visible; | 22 visibility: visible; |
| 23 background-color: green; | 23 background-color: green; |
| 24 } | 24 } |
| 25 | 25 |
| 26 .composited { | 26 .composited { |
| 27 -webkit-transform: translateZ(1px); | 27 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.dumpAsTextWithPixelResults(); | 35 testRunner.dumpAsTextWithPixelResults(); |
| 36 | 36 |
| 37 var counter = 0; | 37 var counter = 0; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 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 |