layout/reftests/svg/fragmentIdentifier-01.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/fragmentIdentifier-01.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +  <head>
     1.6 +    <title>Testcases for SVG fragment identifiers</title>
     1.7 +  </head>
     1.8 +  <body style="background-color: lime;">
     1.9 +    <div>
    1.10 +      <object type="image/svg+xml" width="100" height="100" data="fragmentIdentifier-rect-01.svg#limeView" />
    1.11 +      <object type="image/svg+xml" width="100" height="100" data="fragmentIdentifier-rect-01.svg#svgView(viewBox(0,200,100,100))" />
    1.12 +    </div>
    1.13 +    <div>
    1.14 +      <object type="image/svg+xml" width="100" height="100" data="fragmentIdentifier-rect-01.svg#svgView(viewBox(0,0,100,100);transform(translate(0,200)))" />
    1.15 +      <object id="replace" type="image/svg+xml" width="100" height="100" data="fragmentIdentifier-rect-01.svg#svgView(viewBox(0,0,100,100);transform(translate(0,0))" />
    1.16 +      <object id="remove" type="image/svg+xml" width="100" height="100" data="fragmentIdentifier-rect-01.svg#svgView(viewBox(0,200,100,100);transform(translate(0,200)))" />
    1.17 +    </div>
    1.18 +    <script type="text/javascript">
    1.19 +      window.onload = function() {
    1.20 +        document.getElementById("replace").setAttribute("data","fragmentIdentifier-rect-01.svg#svgView(viewBox(0,0,100,100);transform(translate(0,200)))");
    1.21 +        document.getElementById("remove").setAttribute("data","fragmentIdentifier-rect-01.svg#svgView(viewBox(0,200,100,100))");
    1.22 +        document.documentElement.removeAttribute("class");
    1.23 +      }
    1.24 +    </script>
    1.25 +  </body>
    1.26 +</html>

mercurial