summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-visited/svg-paint-currentcolor-visited.svg
blob: 6893c6107df9781d938516c70bf91233a479bbea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<svg xmlns="http://www.w3.org/2000/svg">
  <metadata>
    <link xmlns="http://www.w3.org/1999/xhtml" rel="author" title="Cameron McCormack" href="mailto:cam@mcc.id.au"/>
    <link xmlns="http://www.w3.org/1999/xhtml" rel="help" href="https://www.w3.org/TR/SVG2/pservers.html"/>
    <link xmlns="http://www.w3.org/1999/xhtml" rel="match" href="currentcolor-visited-ref.svg"/>
    <meta xmlns="http://www.w3.org/1999/xhtml" name="assert" content="currentcolor should resolve against the visited-dependent value of the color property."/>
  </metadata>

  <style>
    a:link { color: red; }
    a:visited { color: green; }
    rect { fill: currentcolor; stroke: currentcolor; stroke-width: 20px; }
  </style>

  <a href="visited-page.html"><rect x="10" y="10" width="80" height="80"/></a>
</svg>