[Webkit-unassigned] [Bug 198660] Video in SVG foreignObject is not translated correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 7 09:51:37 PDT 2019


--- Comment #2 from Matthew <mattgwwalker at gmail.com> ---
A workaround is to ensure that the SVG is not scaled (i.e. the width and height of the SVG in pixels matches exactly the width and height of the viewBox) and that the viewBox coordinates are at (0,0).  It is then possible to take the foreignObject, move it to the root of the SVG, and give it x and y coordinates that are the same as any background objects after translation.  Because the SVG has not been scaled, the video's width and height attributes then behave acceptably.

See the attached example.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190607/e59d4f8c/attachment.html>

More information about the webkit-unassigned mailing list