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

Unified Diff: sky/tests/clipping/canvas-rounded-corners.sky

Issue 772193004: Remove PaintLayerPaintingChildClippingMaskPhase. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/tests/clipping/canvas-rounded-corners-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/clipping/canvas-rounded-corners.sky
diff --git a/sky/tests/clipping/canvas-rounded-corners.sky b/sky/tests/clipping/canvas-rounded-corners.sky
new file mode 100644
index 0000000000000000000000000000000000000000..e7ea17c4843e88f4545725671ff17cf72275950f
--- /dev/null
+++ b/sky/tests/clipping/canvas-rounded-corners.sky
@@ -0,0 +1,24 @@
+<sky>
+ <import src="../resources/dump-as-render-tree.sky" />
+ <style>
+ canvas {
+ background-color: gray;
+ border: 10px solid red;
+ border-radius: 200px 100px 0px 0px;
+ }
+ </style>
+ <!-- TODO(ojan): Make this a reftest. -->
+ <h3>It passes if:</h3>
+ <ul>
+ <li>the canvas content has rounded corners (top-left and top-right)</li>
+ <li>the 10px red border is visible around the canvas content</li>
+ <li>gray border is not visible</li>
+ </ul>
+ <canvas id="theCanvas" width="257" height="257"></canvas>
+ <script>
+ var theCanvas = document.getElementById('theCanvas');
+ var context = theCanvas.getContext('2d');
+ context.fillStyle = 'green';
+ context.fillRect(0, 0, theCanvas.width, theCanvas.width);
esprehn 2014/12/03 04:09:16 Did you load this and see if the canvas actually p
+ </script>
+</sky>
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/tests/clipping/canvas-rounded-corners-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698