layout/reftests/svg/href-attr-change-restyles.svg

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/svg/href-attr-change-restyles.svg	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +<svg xmlns="http://www.w3.org/2000/svg" version="1.1"
     1.5 +     xmlns:xlink="http://www.w3.org/1999/xlink"
     1.6 +     onload="document.getElementById('link1').removeAttribute('xlink:href');
     1.7 +             document.getElementById('link2').setAttributeNS('http://www.w3.org/1999/xlink', 'href', 'http://example.com/1');
     1.8 +             document.getElementById('link3').setAttributeNS('http://www.w3.org/1999/xlink', 'href', '');">
     1.9 +
    1.10 +  <title>Test for bug 549797 - Removing href attribute doesn't remove link styling</title>
    1.11 +
    1.12 +  <style type="text/css">
    1.13 +  <![CDATA[
    1.14 +a {
    1.15 +  fill: blue;
    1.16 +}
    1.17 +a:link, a:visited {
    1.18 +  fill: red;
    1.19 +}
    1.20 +  ]]>
    1.21 +  </style>
    1.22 +
    1.23 +  <a id="link1" xlink:href="http://example.com/1">
    1.24 +    <text x="10" y="100">Test anchor 1</text>
    1.25 +  </a>
    1.26 +
    1.27 +  <a id="link2">
    1.28 +    <text x="10" y="200">Test anchor 2</text>
    1.29 +  </a>
    1.30 +
    1.31 +  <a id="link3">
    1.32 +    <text x="10" y="300">Test anchor 3</text>
    1.33 +  </a>
    1.34 +
    1.35 +</svg>

mercurial