[Bug 16377] Define handling of singular 3D transforms

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16377

--- Comment #2 from Dirk Schulze <dschulze@adobe.com> 2012-03-14 23:31:00 UTC ---
Created attachment 1101
  --> https://www.w3.org/Bugs/Public/attachment.cgi?id=1101
SVG element with singular matrix

It might be a good idea to look what SVG does. I attached a short example:

<g>
<rect x="100" y="100" width="100" height="100" transform="scale(0)"/>
</g>

That is the actual code. When you open it in SVG viewers, the rect will not get
displayed on all browsers. And it shouldn't, because of the singular
transformation on the matrix.

Now to the bounding box. If you check the bounding box of the SVGGElement if no
transform was applied to the rect, it should be (100,100,100,100).

But when you check the bounding box with the transform on the child, you get
(0,0,0,0), as if no rect was in the DOM.

document.getElementsByTagName('g')[0].getBBox()

In my eyes the same should happen for getBoundingClientRect(),
elementFromPoint().

And for animation section we already have the note, that the figure would
disappear from the screen. WebKit should fix the implementation.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 14 March 2012 23:31:03 UTC