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

Unified Diff: LayoutTests/fast/borders/border-radius-mask-canvas.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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/borders/border-radius-mask-canvas-all.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/borders/border-radius-mask-canvas.html
diff --git a/LayoutTests/fast/borders/border-radius-mask-canvas.html b/LayoutTests/fast/borders/border-radius-mask-canvas.html
new file mode 100644
index 0000000000000000000000000000000000000000..2d77866d5b546c665c48afafe71b299eb43688a8
--- /dev/null
+++ b/LayoutTests/fast/borders/border-radius-mask-canvas.html
@@ -0,0 +1,27 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <style>
+ canvas {
+ background-color: gray;
+ border-radius: 200px 0px 200px 0px;
+ }
+ </style>
+ </head>
+ <body>
+ <h3>It passes if:</h3>
+ <ul>
+ <li>the canvas content has rounded corners (top-left and bottom-right)</li>
+ <li>gray background is not visible</li>
+ </ul>
+ <canvas id="theCanvas" width="257" height="257"></canvas>
+ <script>
+ if (window.internals) {
+ internals.settings.setAccelerated2dCanvasEnabled(true);
+ }
+ var context = theCanvas.getContext('2d');
+ context.fillStyle = 'green';
+ context.fillRect(0, 0, theCanvas.width, theCanvas.width);
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/borders/border-radius-mask-canvas-all.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698