W3C home > Mailing lists > Public > www-svg@w3.org > June 2006

Default value of SVGUseElement.{width,height}

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 21 Jun 2006 18:35:05 +1000
To: www-svg@w3.org
Message-ID: <20060621083505.GC11536@port.mcc.id.au>

Hi.

In a similar issue to that described in
http://www.w3.org/mid/20060614070058.GB22792@port.mcc.id.au, SVG 1.1
does not specify the value that the width and height attributes on the
SVGUseElement interface should have if they are not specified.

With this document:

  <svg xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink"
       width="100" height="200">
    <g id="g"/>
    <use id="u" xlink:href="#g"/>
    <script>
      var u = document.getElementById("u");
      alert(u.width.baseVal.value + " x " + u.height.baseVal.value);
    </script>
  </svg>

Batik SVN and Opera 9 show “0 x 0”, while Firefox shows “100 x 200”.
The attributes aren’t implemented in ASV 3.  What should the correct
behaviour be?

Thanks,

Cameron

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au
Received on Wednesday, 21 June 2006 08:35:27 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:34 GMT