| Index: LayoutTests/fast/canvas/canvas-css-clip-path-intersection.html
|
| diff --git a/LayoutTests/fast/canvas/canvas-css-clip-path-intersection.html b/LayoutTests/fast/canvas/canvas-css-clip-path-intersection.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f52905064a194b329d5040a3bb4259753ba9fad8
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/canvas/canvas-css-clip-path-intersection.html
|
| @@ -0,0 +1,30 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| +<body>
|
| + <p>This test verifies that nested divs with intersecting clip-paths apply correctly to canvas elements</p>
|
| + <p>Below there should be two identical green squares with a yellow border to the top and left, and a blue border to the bottom and right.</p>
|
| + <div style="background-color:blue; width:100px; height:100px;">
|
| + <div style="background-color:yellow; -webkit-clip-path: rectangle(0px, 0px, 80px, 80px); width:100px; height:100px;">
|
| + <div style="background-color:red; -webkit-clip-path: rectangle(20px, 20px, 80px, 80px); width:100px; height:100px;">
|
| + <canvas id="c1" width="100" height="100"></canvas>
|
| + </div>
|
| + </div>
|
| + </div>
|
| + <br>
|
| + <div style="background-color:blue; width:100px; height:100px;">
|
| + <div style="background-color:yellow; -webkit-clip-path: rectangle(0px, 0px, 80px, 80px); width:100px; height:100px; -webkit-transform: translateZ(0);">
|
| + <div style="background-color:red; -webkit-clip-path: rectangle(20px, 20px, 80px, 80px); width:100px; height:100px; -webkit-transform: translateZ(0);">
|
| + <canvas id="c2" width="100" height="100"></canvas>
|
| + </div>
|
| + </div>
|
| + </div>
|
| + <script>
|
| + var ctx1 = document.getElementById("c1").getContext("2d");
|
| + ctx1.fillStyle = 'green';
|
| + ctx1.fillRect(0,0, 100, 100);
|
| + var ctx2 = document.getElementById("c2").getContext("2d");
|
| + ctx2.fillStyle = 'green';
|
| + ctx2.fillRect(0,0, 100, 100);
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|