layout/reftests/svg/pseudo-classes-02.svg

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 <!--
     2      Any copyright is dedicated to the Public Domain.
     3      http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <svg xmlns="http://www.w3.org/2000/svg" version="1.1"
     6      xmlns:xlink="http://www.w3.org/1999/xlink">
     8   <title>Testcase for pseudo-classes and text/links</title>
    10   <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=268135 -->
    12   <style type="text/css">
    13   <![CDATA[
    15 :root                   { font-size: 1em; }
    16 text > a:link           { fill: lime; }
    17 a:visited > text        { fill: lime; }
    18 tspan > a:link          { fill: lime; }
    19 a:visited > tspan       { fill: lime; }
    21   ]]>
    22   </style>
    24   <!-- link in text -->
    25   <text x="10" y="25">
    26     <a xlink:href="do-not-visit-me.xxx" fill="red">This should be green</a>
    27   </text>
    29   <!-- text in link -->
    30   <a xlink:href="">
    31     <text x="10" y="50" fill="red">This should be green</text>
    32   </a>
    34   <!-- link in tspan -->
    35   <text>
    36     <tspan x="10" y="75">
    37       <a xlink:href="do-not-visit-me.xxx" fill="red">This should be green</a>
    38     </tspan>
    39   </text>
    41   <!-- tspan in link -->
    42   <text>
    43     <a xlink:href="">
    44       <tspan x="10" y="100" fill="red">This should be green</tspan>
    45     </a>
    46   </text>
    48 </svg>

mercurial