Closed
Bug 1511994
Opened 6 years ago
Closed 6 years ago
SVGDefsElement.getBBox() exception
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 612118
People
(Reporter: lviggiani, Unassigned)
Details
Attachments
(1 file)
662 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0 Steps to reproduce: Try to execute the testcase.html attached to this bug. The test case walks through a SVG tre and prints out the bbox of all SVGGraphicsElement. As <defs> (SVGDefsElement) inherits from SVGGraphicsElement, the getBBox method is executed on that element too. Actual results: I Firefox getBBox() gives a NS_NETWORK_ERROR when executed on a SVGDefsElement, whereas in Webkit it simply returns a 0x0 box, without any error. Expected results: IMHO, SVGDefsElement should not inherit from SVGGraphicsElement as it does not make any sense having a getBBox method or getCTM etc as it is not an actual graphics element. BTW, since it's like that, at least calling those methods on <defs> element should not trow errors.
Updated•6 years ago
|
Component: Untriaged → SVG
Product: Firefox → Core
Updated•6 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•