OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 video { |
| 6 background-color: gray; |
| 7 width: 500px; |
| 8 height: 225px; |
| 9 border-radius: 200px 0px 100px 0px; |
| 10 box-shadow: 0 0 8px 8px red; |
| 11 margin: 10px; |
| 12 -webkit-transform: translateZ(0); |
| 13 } |
| 14 </style> |
| 15 <script> |
| 16 if (window.internals) { |
| 17 internals.settings.setAcceleratedCompositingForVideoEnabled(true); |
| 18 } |
| 19 if (window.testRunner) { |
| 20 testRunner.waitUntilDone(); |
| 21 } |
| 22 function canPlay() { |
| 23 setTimeout(function() { |
| 24 if (window.testRunner) |
| 25 testRunner.notifyDone(); |
| 26 }, 0); |
| 27 } |
| 28 </script> |
| 29 </head> |
| 30 <body> |
| 31 <h3>It passes if:</h3> |
| 32 <ul> |
| 33 <li>the video content has rounded corners (top left and bottom right)</l
i> |
| 34 <li>the remaining space is gray and has same rounded corners as video co
ntent</li> |
| 35 <li>has box shadow around the video element</li> |
| 36 </ul> |
| 37 <video src='../../media/resources/frame_size_change.webm' oncanplaythrough
='canPlay();'></video> |
| 38 </body> |
| 39 </html> |
OLD | NEW |