Hi Andreas. Andreas Neumann: > No, I mean […]
This example now works with the code in SVN: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <svg id="s" viewBox="0 0 100 100"> <circle cx="0" cy="0" r="100"/> </svg> </defs> <use xlink:href="#s" width="100" height="100"> <animate attributeName="width" dur="5s" from="0" to="100"/> </use> </svg> This too: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" font-size="20"> <defs> <circle id="c" cx="0" cy="0" r="100" fill="blue" opacity="0.5"> <animate id="a" attributeName="r" dur="5s" from="0" to="50" fill="freeze"/> </circle> </defs> <use xlink:href="#c" x="100" y="100"/> <use xlink:href="#c" x="200" y="100"/> <use xlink:href="#c" x="150" y="150"/> <text x="150" y="141" fill="white" display="none" text-anchor="middle"> <set attributeName="display" begin="a.end" to="inline"/> a.end </text> </svg> This definitely doesn’t work at the moment: <defs> <g id="g"/> </defs> <use xlink:href="#g"/> <animate xlink:href="#g" …/> This is because internally used elements are handled by cloning the subtree. The first other example works only because the 'animate' element gets cloned along with it. At some point 'use' will have to be re-engineered to handle this (and also implement the .instanceRoot and .animatedInstanceRoot attributes). Cameron -- Cameron McCormack, http://mcc.id.au/ xmpp:[EMAIL PROTECTED] ▪ ICQ 26955922 ▪ MSN [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
