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

Side by Side Diff: LayoutTests/fast/canvas/canvas-css-clip-path-nested-container.html

Issue 59613010: Fix propagation of clip-path and border-radius clipping to child layers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix for mac build Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 <p>This test verifies that nested divs with clip-paths apply correctly to ca nvas elements</p>
5 <p>Below there should be two identical green squares nested in blue squares, nested in yellow squares</p>
6 <div style="background-color:yellow; width:100px; height:100px;">
7 <div style="background-color:blue;-webkit-clip-path: rectangle(10px, 10p x, 80px, 80px); width:100px; height:100px;">
8 <div style="background-color:red;-webkit-clip-path: rectangle(20px, 20px, 60px, 60px); width:100px; height:100px;">
9 <canvas id="c1" width="300" height="300"></canvas>
10 </div>
11 </div>
12 </div>
13 <br>
14 <div style="background-color:yellow; width:100px; height:100px;">
15 <div style="background-color:blue; position:relative; left:5px; top:7px; -webkit-clip-path: rectangle(5px, 3px, 80px, 80px); width:100px; height:100px;" >
16 <div style="background-color:red; position:relative; left:11px; top: 11px; -webkit-clip-path: rectangle(4px, 2px, 60px, 60px); width:100px; height:10 0px;">
17 <canvas id="c2" width="300" height="300"></canvas>
18 </div>
19 </div>
20 </div>
21 <script>
22 var ctx1 = document.getElementById("c1").getContext("2d");
23 ctx1.fillStyle = 'green';
24 ctx1.fillRect(0,0, 300, 300);
25 var ctx2 = document.getElementById("c2").getContext("2d");
26 ctx2.fillStyle = 'green';
27 ctx2.fillRect(0,0, 300, 300);
28 </script>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698