- From: T Rowley <tor@cs.brown.edu>
- Date: Wed, 14 Feb 2007 15:14:41 -0600
- To: www-svg <www-svg@w3.org>
We're currently fixing <a> to work inside <text> for Mozilla/Firefox, and have run across a couple oddities that appear allowed by the DTD in SVG 1.1, but are a bit strange. Here's a testcase showing three uses of <a> inside <text> - first normal usage, then setting the "transform" attribute of <a>, and then adding an ordinary geometry object inside the <a>. <svg xmlns="http://www.w3.org/2000/svg"> <g font-size="25"> <text y="25">test1(1)<a>test1(2)</a></text> <text y="75">test2(1)<a transform="translate(0,25)">test2(2)</a></text> <text y="125">test3<a><circle cx="150" cy="200" r="50"/></a></text> </g> </svg> Firefox (with a patch I'm currently reviewing) and Opera show "test2(2)" offset vertically and the circle. Batik and ASV3 ignore the transform and circle. Webkit doesn't show content for any of the <a>s. A search through the Text and Linking chapters of the SVG 1.1 spec doesn't appear anything that forbids the markup in test2/3.
Received on Wednesday, 14 February 2007 21:14:52 UTC