| Index: LayoutTests/fast/canvas/canvas-css-clip-path-container.html
|
| diff --git a/LayoutTests/fast/canvas/canvas-css-clip-path-container.html b/LayoutTests/fast/canvas/canvas-css-clip-path-container.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..adadabb2f4841f52d04df8fd26cacbfc2410b6ff
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/canvas/canvas-css-clip-path-container.html
|
| @@ -0,0 +1,26 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| +<body>
|
| + <p>This test verifies that a clip-path on a div applies correctly to child canvases.</p>
|
| + <p>Below there should be two green squares with yellow borders.</p>
|
| + <div style="background-color:yellow; width:100px; height:100px;">
|
| + <div style="-webkit-clip-path: rectangle(10px, 10px, 80px, 80px); width:100px; height:100px;">
|
| + <canvas id="c1" width="300" height="300"></canvas>
|
| + </div>
|
| + </div>
|
| + <br>
|
| + <div style="background-color:yellow; width:100px; height:100px;">
|
| + <div style="position:relative; left:5px; top:5px; -webkit-clip-path: rectangle(5px, 5px, 80px, 80px); width:100px; height:100px;">
|
| + <canvas id="c2" width="300" height="300"></canvas>
|
| + </div>
|
| + </div>
|
| + <script>
|
| + var ctx1 = document.getElementById("c1").getContext("2d");
|
| + ctx1.fillStyle = 'green';
|
| + ctx1.fillRect(0,0, 300, 300);
|
| + var ctx2 = document.getElementById("c2").getContext("2d");
|
| + ctx2.fillStyle = 'green';
|
| + ctx2.fillRect(0,0, 300, 300);
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|