layout/reftests/svg/foreignObject-overflow-01.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/foreignObject-overflow-01.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     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" xmlns:html="http://www.w3.org/1999/xhtml">
     1.9 +
    1.10 +  <title>Testcase: foreignObject should clip its content</title>
    1.11 +
    1.12 +  <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=378897 -->
    1.13 +
    1.14 +  <rect width="100%" height="100%" fill="red"/>
    1.15 +
    1.16 +  <!-- Create the "pass" rect using a foreignObject so the testcase doesn't
    1.17 +       seem to pass if foreignObject is not supported -->
    1.18 +  <foreignObject width="100%" height="100%">
    1.19 +    <html:div style="display:block; height:100%; width:100%; background: lime;"/>
    1.20 +  </foreignObject>
    1.21 +
    1.22 +  <!-- test 'overflow' -->
    1.23 +  <foreignObject x="-10" y="-10" width="10" height="10">
    1.24 +    <html:div style="display:block; height:10000px; width:10000px; background:red;"/>
    1.25 +  </foreignObject>
    1.26 +
    1.27 +</svg>

mercurial