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