layout/reftests/border-radius/intersecting-clipping-1-refc.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-refc.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,55 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<title>Test for clipping of border-radius</title>
     1.6 +<style>
     1.7 +#contain {
     1.8 +  width: 200px;
     1.9 +  height: 100px;
    1.10 +  position: relative;
    1.11 +}
    1.12 +#contain > div {
    1.13 +  overflow: hidden;
    1.14 +  width: 200px;
    1.15 +  height: 100px;
    1.16 +  border-radius: 50px / 20px;
    1.17 +}
    1.18 +#contain > div > canvas {
    1.19 +  border-radius: 20px / 40px;
    1.20 +}
    1.21 +
    1.22 +#contain > div.spot {
    1.23 +  position: absolute;
    1.24 +  height: 1px;
    1.25 +  width: 1px;
    1.26 +}
    1.27 +
    1.28 +</style>
    1.29 +<div id="contain">
    1.30 +<div><canvas id="canvas" height="100" width="200"></canvas></div>
    1.31 +<script>
    1.32 +var canvas = document.getElementById("canvas");
    1.33 +var cx = canvas.getContext("2d");
    1.34 +cx.fillStyle="lime";
    1.35 +cx.fillRect(0, 0, 200, 100);
    1.36 +</script>
    1.37 +
    1.38 +<!--
    1.39 +This is just like the test, except we'll add a bunch of spots in various
    1.40 +places that should match the background of what they're on.
    1.41 +-->
    1.42 +
    1.43 +<div class="spot" style="top: 1px; left: 15px; background: white"></div>
    1.44 +<div class="spot" style="top: 14px; left: 2px; background: white"></div>
    1.45 +<div class="spot" style="top: 18px; left: 0px; background: white"></div>
    1.46 +<div class="spot" style="top: 82px; left: 198px; background: white"></div>
    1.47 +<div class="spot" style="top: 97px; left: 180px; background: white"></div>
    1.48 +<div class="spot" style="top: 2px; left: 180px; background: white"></div>
    1.49 +<div class="spot" style="top: 17px; left: 198px; background: white"></div>
    1.50 +<div class="spot" style="top: 97px; left: 19px; background: white"></div>
    1.51 +<div class="spot" style="top: 82px; left: 1px; background: white"></div>
    1.52 +
    1.53 +<div class="spot" style="top: 10px; left: 8px; background: lime"></div>
    1.54 +<div class="spot" style="top: 89px; left: 8px; background: lime"></div>
    1.55 +<div class="spot" style="top: 10px; left: 191px; background: lime"></div>
    1.56 +<div class="spot" style="top: 89px; left: 191px; background: lime"></div>
    1.57 +
    1.58 +</div>

mercurial