1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/opacity-and-gradient-02.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 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 +<svg xmlns="http://www.w3.org/2000/svg" version="1.1"> 1.9 + 1.10 + <title>Testcase for opacity on elements referencing a gradient</title> 1.11 + 1.12 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=539165 --> 1.13 + 1.14 + <defs> 1.15 + <linearGradient id="lime" gradientUnits="userSpaceOnUse"> 1.16 + <stop stop-color="lime"/> 1.17 + </linearGradient> 1.18 + <linearGradient id="red" gradientUnits="userSpaceOnUse"> 1.19 + <stop stop-color="red"/> 1.20 + </linearGradient> 1.21 + <linearGradient id="red2" gradientUnits="userSpaceOnUse"> 1.22 + <stop stop-color="red" offset="0%"/> 1.23 + <stop stop-color="red" offset="100%"/> 1.24 + </linearGradient> 1.25 + <linearGradient id="redgreen" gradientUnits="userSpaceOnUse"> 1.26 + <stop stop-color="red" offset="0%"/> 1.27 + <stop stop-color="lime" offset="100%"/> 1.28 + </linearGradient> 1.29 + </defs> 1.30 + 1.31 + <rect width="100%" height="100%" fill="url(#lime)"/> 1.32 + 1.33 + <!-- test 'opacity' --> 1.34 + <rect width="25%" height="100%" fill="red" opacity="1"/> 1.35 + 1.36 + <!-- test 'fill-opacity' --> 1.37 + <rect x="25%" width="25%" height="100%" fill="url(#red)" fill-opacity="0.5"/> 1.38 + 1.39 + <!-- test 'fill-opacity' --> 1.40 + <rect x="50%" width="25%" height="100%" fill="url(#red2)" fill-opacity="0.5"/> 1.41 + 1.42 + <!-- test 'fill-opacity' --> 1.43 + <rect x="75%" width="25%" height="100%" fill="url(#redgreen)" fill-opacity="0"/> 1.44 + 1.45 +</svg>