1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/image-element/gradient-html-06e.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 + Ensure that SVG elements using fill="url(#...)" are *not* 1.8 + affected by mozSetImageElement. 1.9 +--> 1.10 +<!DOCTYPE html> 1.11 +<html> 1.12 +<body style="margin:0"> 1.13 + <svg width="300" height="300"> 1.14 + <rect width="300" height="300" fill="url(#g)"></rect> 1.15 + <linearGradient id="red" gradientUnits="objectBoundingBox" x2="0" y2="1"> 1.16 + <stop stop-color="red" offset="0"></stop> 1.17 + <stop stop-color="black" offset="1"></stop> 1.18 + </linearGradient> 1.19 + <linearGradient id="g" gradientUnits="objectBoundingBox" x2="0" y2="1"> 1.20 + <stop stop-color="lime" offset="0"></stop> 1.21 + <stop stop-color="black" offset="1"></stop> 1.22 + </linearGradient> 1.23 + </svg> 1.24 + <script>document.mozSetImageElement("g", document.getElementById("red"));</script> 1.25 +</body> 1.26 +</html>