layout/reftests/border-radius/intersecting-clipping-1-refi.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-refi.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,51 @@
     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 > img {
    1.19 +  border-radius: 20px / 40px;
    1.20 +  width: 200px;
    1.21 +  height: 100px;
    1.22 +}
    1.23 +
    1.24 +#contain > div.spot {
    1.25 +  position: absolute;
    1.26 +  height: 1px;
    1.27 +  width: 1px;
    1.28 +}
    1.29 +
    1.30 +</style>
    1.31 +<div id="contain">
    1.32 +<div><img src="../pixel-rounding/lime-25x25.png" alt=""></div>
    1.33 +
    1.34 +<!--
    1.35 +This is just like the test, except we'll add a bunch of spots in various
    1.36 +places that should match the background of what they're on.
    1.37 +-->
    1.38 +
    1.39 +<div class="spot" style="top: 1px; left: 15px; background: white"></div>
    1.40 +<div class="spot" style="top: 14px; left: 2px; background: white"></div>
    1.41 +<div class="spot" style="top: 18px; left: 0px; background: white"></div>
    1.42 +<div class="spot" style="top: 82px; left: 198px; background: white"></div>
    1.43 +<div class="spot" style="top: 97px; left: 180px; background: white"></div>
    1.44 +<div class="spot" style="top: 2px; left: 180px; background: white"></div>
    1.45 +<div class="spot" style="top: 17px; left: 198px; background: white"></div>
    1.46 +<div class="spot" style="top: 97px; left: 19px; background: white"></div>
    1.47 +<div class="spot" style="top: 82px; left: 1px; background: white"></div>
    1.48 +
    1.49 +<div class="spot" style="top: 10px; left: 8px; background: lime"></div>
    1.50 +<div class="spot" style="top: 89px; left: 8px; background: lime"></div>
    1.51 +<div class="spot" style="top: 10px; left: 191px; background: lime"></div>
    1.52 +<div class="spot" style="top: 89px; left: 191px; background: lime"></div>
    1.53 +
    1.54 +</div>

mercurial