Index: LayoutTests/fast/borders/border-radius-mask-video.html |
diff --git a/LayoutTests/fast/borders/border-radius-mask-video.html b/LayoutTests/fast/borders/border-radius-mask-video.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4a44bf91508ba59cc06abfc5cf8377b9dd17a494 |
--- /dev/null |
+++ b/LayoutTests/fast/borders/border-radius-mask-video.html |
@@ -0,0 +1,36 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <style> |
+ video { |
+ background-color: gray; |
+ width: 400px; |
+ height: 225px; |
+ border-radius: 200px 0px 100px 0px; |
+ -webkit-transform: translateZ(0); |
+ } |
+ </style> |
+ <script> |
+ if (window.internals) { |
+ internals.settings.setAcceleratedCompositingForVideoEnabled(true); |
+ } |
+ if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ } |
+ function canPlay() { |
+ setTimeout(function() { |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ }, 0); |
+ } |
+ </script> |
+ </head> |
+ <body> |
+ <h3>It passes if:</h3> |
+ <ul> |
+ <li>the video content has rounded corners (top left and bottom right)</li> |
+ <li>gray background is not visible</li> |
+ </ul> |
+ <video src='../../media/resources/frame_size_change.webm' oncanplaythrough='canPlay();'></video> |
+ </body> |
+</html> |