1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/foreignObject-style-change-01.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,30 @@ 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 + class="reftest-wait"> 1.10 + 1.11 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=708155 --> 1.12 + 1.13 + <title>Testcase for style change on foreignObject</title> 1.14 + 1.15 + <script> 1.16 + 1.17 + document.addEventListener("MozReftestInvalidate", doTest, false); 1.18 + setTimeout(doTest, 4000); // fallback for running outside reftest 1.19 + 1.20 + function doTest() { 1.21 + document.getElementById('fo').style.opacity = '1'; 1.22 + 1.23 + document.documentElement.removeAttribute('class'); 1.24 + } 1.25 + </script> 1.26 + 1.27 + <rect width="100%" height="100%" fill="red"/> 1.28 + <foreignObject id="fo" width="100%" height="100%" opacity="0"> 1.29 + <div xmlns="http://www.w3.org/1999/xhtml" style="width: 100%; height: 100%;background-color: lime;"> 1.30 + </div> 1.31 + </foreignObject> 1.32 + 1.33 +</svg>