layout/reftests/svg/overflow-on-outer-svg-03b.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/overflow-on-outer-svg-03b.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!--
     1.6 +     Any copyright is dedicated to the Public Domain.
     1.7 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.8 +-->
     1.9 +<html xmlns="http://www.w3.org/1999/xhtml"
    1.10 +      class="reftest-wait">
    1.11 +  <head>
    1.12 +    <title>Test that non-root outer-&lt;svg&gt; repaints correctly changing to overflow="visible"</title>
    1.13 +    <script>
    1.14 +
    1.15 +function doTest() {
    1.16 +  document.getElementById("svg").setAttribute("overflow", "visible");
    1.17 +  document.documentElement.removeAttribute("class");
    1.18 +}
    1.19 +
    1.20 +window.addEventListener("MozReftestInvalidate", doTest, false);
    1.21 +setTimeout(doTest, 4000); // fallback for running outside reftest
    1.22 +
    1.23 +    </script>
    1.24 +  </head>
    1.25 +  <body>
    1.26 +    <svg id="svg" xmlns="http://www.w3.org/2000/svg" width="100" height="100"
    1.27 +         overflow="hidden">
    1.28 +      <rect x="-50" y="-50" width="200" height="200" fill="blue"/>
    1.29 +    </svg>
    1.30 +  </body>
    1.31 +</html>

mercurial