1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/pseudo-classes-02.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,48 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ 1.7 +--> 1.8 +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" 1.9 + xmlns:xlink="http://www.w3.org/1999/xlink"> 1.10 + 1.11 + <title>Testcase for pseudo-classes and text/links</title> 1.12 + 1.13 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=268135 --> 1.14 + 1.15 + <style type="text/css"> 1.16 + <![CDATA[ 1.17 + 1.18 +:root { font-size: 1em; } 1.19 +text > a:link { fill: lime; } 1.20 +a:visited > text { fill: lime; } 1.21 +tspan > a:link { fill: lime; } 1.22 +a:visited > tspan { fill: lime; } 1.23 + 1.24 + ]]> 1.25 + </style> 1.26 + 1.27 + <!-- link in text --> 1.28 + <text x="10" y="25"> 1.29 + <a xlink:href="do-not-visit-me.xxx" fill="red">This should be green</a> 1.30 + </text> 1.31 + 1.32 + <!-- text in link --> 1.33 + <a xlink:href=""> 1.34 + <text x="10" y="50" fill="red">This should be green</text> 1.35 + </a> 1.36 + 1.37 + <!-- link in tspan --> 1.38 + <text> 1.39 + <tspan x="10" y="75"> 1.40 + <a xlink:href="do-not-visit-me.xxx" fill="red">This should be green</a> 1.41 + </tspan> 1.42 + </text> 1.43 + 1.44 + <!-- tspan in link --> 1.45 + <text> 1.46 + <a xlink:href=""> 1.47 + <tspan x="10" y="100" fill="red">This should be green</tspan> 1.48 + </a> 1.49 + </text> 1.50 + 1.51 +</svg>