layout/reftests/border-radius/intersecting-clipping-1-canvas.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/border-radius/intersecting-clipping-1-canvas.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<title>Test for clipping of border-radius</title>
     1.6 +<style>
     1.7 +div {
     1.8 +  overflow: hidden;
     1.9 +  width: 200px;
    1.10 +  height: 100px;
    1.11 +  border-radius: 50px / 20px;
    1.12 +}
    1.13 +canvas {
    1.14 +  border-radius: 20px / 40px;
    1.15 +}
    1.16 +</style>
    1.17 +<div><canvas id="canvas" height="100" width="200"></canvas></div>
    1.18 +<script>
    1.19 +var canvas = document.getElementById("canvas");
    1.20 +var cx = canvas.getContext("2d");
    1.21 +cx.fillStyle="lime";
    1.22 +cx.fillRect(0, 0, 200, 100);
    1.23 +</script>

mercurial