1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/svg-integration/mask-html-01.xhtml 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/publicdomain/zero/1.0/ 1.7 +--> 1.8 +<html xmlns="http://www.w3.org/1999/xhtml" 1.9 + xmlns:svg="http://www.w3.org/2000/svg"> 1.10 +<body style="margin:0"> 1.11 + <div style="mask: url(#m1); width:500px; height:500px; background:lime;"></div> 1.12 + <svg:svg height="0"> 1.13 + <!-- so that other documents can svg:use this one and force it to 1.14 + load before onload --> 1.15 + <svg:g id="empty" /> 1.16 + <svg:mask id="m1" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox"> 1.17 + <svg:linearGradient id="g" gradientUnits="objectBoundingBox" x2="0" y2="1"> 1.18 + <svg:stop stop-color="white" offset="0"/> 1.19 + <svg:stop stop-color="white" stop-opacity="0" offset="1"/> 1.20 + </svg:linearGradient> 1.21 + <svg:circle cx="0.25" cy="0.25" r="0.25" id="circle" fill="white"/> 1.22 + <svg:rect x="0.5" y="0" width="0.5" height="1" fill="url(#g)"/> 1.23 + </svg:mask> 1.24 + </svg:svg> 1.25 +</body> 1.26 +</html>