1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/objectBoundingBox-and-mask.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 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 +<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=489151 --> 1.9 + 1.10 +<svg xmlns="http://www.w3.org/2000/svg"> 1.11 + <title>Test objectBoundingBox mask on element with ancestor transform</title> 1.12 + <desc> 1.13 + This test checks that the bbox calculation for an objectBoundingBox 1.14 + mask is correctly getting the bbox in the userspace of the masked 1.15 + element, and not it's bbox in an ancestor userspace or rootspace. 1.16 + </desc> 1.17 + <mask id="mask" maskUnits="objectBoundingBox" maskContentUnits="objectBoundingBox"> 1.18 + <rect x="0.5" width="0.5" height="1" fill="white"/> 1.19 + </mask> 1.20 + <rect width="100%" height="100%" fill="lime"/> 1.21 + <rect x="100" width="100" height="100" fill="red"/> 1.22 + <g transform="translate(-100,0)"> 1.23 + <g mask="url(#mask)"> 1.24 + <rect x="100" width="100" height="100" fill="red"/> 1.25 + <rect x="200" width="100" height="100" fill="lime"/> 1.26 + </g> 1.27 + </g> 1.28 +</svg>