1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/svg-in-foreignObject-02.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 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 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=411146 --> 1.11 + 1.12 + <title>Test percentages dimensions for SVG inside a foreignObject</title> 1.13 + 1.14 + <foreignObject width="50%" height="50%"> 1.15 + <div xmlns="http://www.w3.org/1999/xhtml" style="width:100%;height:100%;"> 1.16 + <svg xmlns="http://www.w3.org/2000/svg" style="width: 50%; height: 50%"> 1.17 + <ellipse cx="50%" cy="50%" rx="50%" ry="50%" fill="blue"/> 1.18 + </svg> 1.19 + </div> 1.20 + </foreignObject> 1.21 + 1.22 + <svg x="25%" width="25%" height="25%"> 1.23 + <ellipse cx="50%" cy="50%" rx="50%" ry="50%" fill="blue"/> 1.24 + </svg> 1.25 + <svg y="25%" width="25%" height="25%"> 1.26 + <ellipse cx="50%" cy="50%" rx="50%" ry="50%" fill="blue"/> 1.27 + </svg> 1.28 + <svg x="25%" y="25%" width="25%" height="25%"> 1.29 + <ellipse cx="50%" cy="50%" rx="50%" ry="50%" fill="blue"/> 1.30 + </svg> 1.31 + 1.32 +</svg>