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

getBBox() for a circle with radius 0

From: Klaus Förster <klaus.foerster@uibk.ac.at>
Date: Tue, 26 Jun 2012 12:19:51 +0200
Message-ID: <4FE98CC7.4050706@uibk.ac.at>
To: www-svg WG <www-svg@w3.org>
What should getBBox() for a circle with radius r="0" at position 
cx="50", cy="50" return? I would expect {50,50,0,0} (x,y,width,height) 
but both Firefox13 and Chrome19 return {0,0,0,0}. Reading chapter "7.12 
Bounding box" [1] of the SVG Tiny 1.2 specification I could not find any 
pointers for why both x and y end up as 0.

Am I missing something or is this case "underspecified" in the spec?

If you want to test what your browser returns - here's the testpage [2]

Klaus Förster

[1] http://www.w3.org/TR/SVGTiny12/coords.html#BoundingBox
[2] http://svg.cc/posts/getBBox_circle_r0.html

Klaus Förster
Department of Geography
University of Innsbruck
A-6020 Innsbruck, Innrain 52
Received on Tuesday, 26 June 2012 10:20:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:28 UTC