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

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <svg xmlns="http://www.w3.org/2000/svg" version="1.1"
     2      xmlns:xlink="http://www.w3.org/1999/xlink">
     4   <title>Test for bug 549797 - Removing href attribute doesn't remove link styling</title>
     6   <style type="text/css">
     7   <![CDATA[
     8 a {
     9   fill: blue;
    10 }
    11 a:link, a:visited {
    12   fill: red;
    13 }
    14   ]]>
    15   </style>
    17   <a>
    18     <text x="10" y="100">Test anchor 1</text>
    19   </a>
    21   <a xlink:href="http://example.com/1">
    22     <text x="10" y="200">Test anchor 2</text>
    23   </a>
    25   <a xlink:href="">
    26     <text x="10" y="300">Test anchor 3</text>
    27   </a>
    29 </svg>

mercurial