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

Unified Diff: LayoutTests/fast/borders/border-radius-mask-canvas-with-mask-expected.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-canvas-with-mask-expected.html
diff --git a/LayoutTests/fast/borders/border-radius-mask-canvas-with-mask-expected.html b/LayoutTests/fast/borders/border-radius-mask-canvas-with-mask-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..c5f36b276e48347ff30b4e6e4011bfc119133ee7
--- /dev/null
+++ b/LayoutTests/fast/borders/border-radius-mask-canvas-with-mask-expected.html
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <style>
+ canvas {
+ background-color: gray;
+ border-radius: 40px 200px 10px 200px;
+ padding: 10px;
+ margin: 20px;
+ border: 5px solid red;
+ -webkit-mask-image: -webkit-linear-gradient(top, rgba(0,0,0,1), rgba(0,0,0,0));
+ -webkit-transform: translateZ(0);
+ }
+ </style>
+ </head>
+ <body>
+ <h3>It passes if:</h3>
+ <ul>
+ <li>the canvas element has a gradient mask applied</li>
+ <li>the canvas content has rounded corners</li>
+ </ul>
+ <canvas id="theCanvas" width="257" height="257"></canvas>
+ <script>
+ if (window.internals) {
+ internals.settings.setAccelerated2dCanvasEnabled(false);
+ }
+ var context = theCanvas.getContext('2d');
+ context.fillStyle = 'green';
+ context.fillRect(0, 0, theCanvas.width, theCanvas.width);
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698