layout/reftests/image-element/element-paint-clippath.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/image-element/element-paint-clippath.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!--
     1.5 +     Any copyright is dedicated to the Public Domain.
     1.6 +     http://creativecommons.org/licenses/publicdomain/
     1.7 +
     1.8 +     Test with clip-path.
     1.9 +-->
    1.10 +<!DOCTYPE html>
    1.11 +<html>
    1.12 +<body style="margin:0">
    1.13 +  <div style="width:200px; height:200px;
    1.14 +              clip-path:url(#c);
    1.15 +              background:-moz-element(#d);"></div>
    1.16 +
    1.17 +  <div style="overflow:hidden; height:0;">
    1.18 +    <div id="d" style="width:200px; height:200px; background:lime;"></div>
    1.19 +  </div>
    1.20 +  <svg height="0">
    1.21 +    <clipPath id="c" clipPathUnits="userSpaceOnUse">
    1.22 +      <rect x="50" y="50" width="50" height="50"></rect>
    1.23 +    </clipPath>
    1.24 +  </svg>
    1.25 +</body>
    1.26 +</html>

mercurial