[Webkit-unassigned] [Bug 83189] New: Canvas inside SVG(foreignObject) positioning error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 4 12:07:58 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=83189
Summary: Canvas inside SVG(foreignObject) positioning error
Product: WebKit
Version: 420+
Platform: Macintosh Intel
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: SVG
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: olivier_lamothe at hotmail.fr
CC: zimmermann at kde.org
Overview
A positioning error occur when a canvas is placed inside a foreignObject tag. If the canvas is drawn with hardware acceleration , the transform attribute is not applied correctly.
Probably related in some way to : https://bugs.webkit.org/show_bug.cgi?id=71819
Step to reproduce :
Go to : http://jsfiddle.net/olamothe/QZRf3/
Change the canvas width between 256<-->257
Actual results :
The transform attribute is not applied correctly when the canvas size is over 257. Canvas is moved to (0,0)
Expected results :
Canvas should always be at (100,100) I.E : the transform-translate attribute
Additional information :
Chrome 18.0.1025.142
Mac OS X 10.6.8
The underlying problem is not really the canvas size, it's actually when the canvas is being rendered with the aid of the hardware. It just so happen that in chrome 18 , canvas over 256 pixel in width or height are rendered with the aid of the GPU. The same effect can be achieved with safari 5.1.5 if you force it to render with hardware ( eg : -webkit-transform : translateZ(0) )
It is also not only linked to the canvas tag. For example if you replace the canvas with a div in the jsfiddle , and apply a CSS 3d transform, the same thing happen.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list