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

Side by Side Diff: LayoutTests/fast/borders/border-radius-mask-canvas-with-shadow-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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <style>
5 canvas {
6 background-color: gray;
7 border-radius: 40px 200px 10px 200px;
8 padding: 10px;
9 margin: 20px;
10 border: 5px solid red;
11 box-shadow: 0 0 8px 8px #888;
12 -webkit-transform: translateZ(0);
13 }
14 </style>
15 </head>
16 <body>
17 <h3>It passes if:</h3>
18 <ul>
19 <li>the canvas element has 8px gray shadow around</li>
20 <li>the canvas content has rounded corners</li>
21 </ul>
22 <canvas id="theCanvas" width="257" height="257"></canvas>
23 <script>
24 if (window.internals) {
25 internals.settings.setAccelerated2dCanvasEnabled(false);
26 }
27 var context = theCanvas.getContext('2d');
28 context.fillStyle = 'green';
29 context.fillRect(0, 0, theCanvas.width, theCanvas.width);
30 </script>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698