Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: LayoutTests/fast/borders/border-radius-mask-video-ratio.html

Issue 16688004: Large canvas does not honor containing div's border radius (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Replaced explicit baselines with NeedsRebaseline Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/borders/border-radius-mask-video-ratio.html
diff --git a/LayoutTests/fast/borders/border-radius-mask-video-ratio.html b/LayoutTests/fast/borders/border-radius-mask-video-ratio.html
new file mode 100644
index 0000000000000000000000000000000000000000..11f99314b0f938dd620a908d3e47e0054d35ac11
--- /dev/null
+++ b/LayoutTests/fast/borders/border-radius-mask-video-ratio.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <style>
+ video {
+ background-color: gray;
+ width: 500px;
+ 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>the remaining space is gray and has same rounded corners as video content</li>
+ </ul>
+ <video src='../../media/resources/frame_size_change.webm' oncanplaythrough='canPlay();'></video>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/fast/borders/border-radius-mask-video.html ('k') | LayoutTests/fast/borders/border-radius-mask-video-shadow.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698