1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/opacity-and-pattern-01.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 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 pattern</title> 1.11 + 1.12 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=374280 --> 1.13 + 1.14 + <defs> 1.15 + <pattern id="lime" width="100%" height="100%" patternUnits="userSpaceOnUse"> 1.16 + <rect width="100%" height="100%" fill="lime"/> 1.17 + </pattern> 1.18 + 1.19 + <pattern id="red" width="100%" height="100%" patternUnits="userSpaceOnUse"> 1.20 + <rect width="100%" height="100%" fill="red"/> 1.21 + </pattern> 1.22 + </defs> 1.23 + 1.24 + <rect width="100%" height="100%" fill="red"/> 1.25 + 1.26 + <!-- Create the "pass" rect using a pattern so the testcase doesn't seem to 1.27 + pass if patterns are not supported --> 1.28 + <rect width="100%" height="100%" fill="url(#lime)"/> 1.29 + 1.30 + <!-- test 'opacity' --> 1.31 + <rect width="25%" height="100%" fill="url(#red)" opacity="0"/> 1.32 + 1.33 + <!-- test 'fill-opacity' --> 1.34 + <rect x="25%" width="25%" height="100%" fill="url(#red)" fill-opacity="0"/> 1.35 + 1.36 + <!-- test 'stroke-opacity' --> 1.37 + <line x1="75%" x2="75%" y2="100%" stroke="url(#red)" stroke-width="50%" stroke-opacity="0"/> 1.38 + 1.39 +</svg>