| Index: LayoutTests/fast/canvas/canvas-css-border-radius-container.html
|
| diff --git a/LayoutTests/fast/canvas/canvas-css-border-radius-container.html b/LayoutTests/fast/canvas/canvas-css-border-radius-container.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..781c673cc921dda80e710129a1228b1bc505b983
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/canvas/canvas-css-border-radius-container.html
|
| @@ -0,0 +1,29 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| +<body>
|
| + <p>This test verifies that a canvas element inside a div with overflow clip and border radii is properly clipped.</p>
|
| + <p>Below there should be a green square with rounded corners nested in a yellow square.</p>
|
| + <div style="background-color:yellow; width:100px; height:100px;">
|
| + <div style="border-radius:20px; overflow:hidden; width:100px; height:100px;">
|
| + <canvas id="c1" width="300" height="300"></canvas>
|
| + </div>
|
| + </div>
|
| + <p>Below there should be a green square with rounded corners symmetrically inset in a yellow square.</p>
|
| + <div style="background-color:yellow; width:100px; height:100px;">
|
| + <div style="position:relative; top:10px; left:10px; border-radius:20px; overflow:hidden; width:80px; height:80px;">
|
| + <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);
|
| + if (window.testRunner) {
|
| + testRunner.dumpAsText(true);
|
| + }
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|