[Webkit-unassigned] [Bug 86010] New: . getTransformToElement doesn’t work correctly across embedded svg elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 9 13:17:00 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=86010

           Summary: .getTransformToElement doesn’t work correctly across
                    embedded svg elements
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: deno at deno.pl
                CC: zimmermann at kde.org


Created an attachment (id=141004)
 --> (https://bugs.webkit.org/attachment.cgi?id=141004&action=review)
Simple test case

If .getTransformToElement() is called with target outside of element’s nearest viewport, the result doesn’t include any transformations that are applied to elements outside of element’s nearest viewport. 

In the example:

  <svg width="600px" height="500px" version="1.1" xmlns="http://www.w3.org/2000/svg">
    <g transform="translate(30, 30)"> <!-- Webkit ignores this transform -->
      <svg width="150" height="150">
        <rect id="rect" x="50" y="50" width="25px" height="25px" fill="gray"></rect>
      </svg>
    </g>
  </svg>

Firefox (Gecko/20120508 Firefox/14.0a2), IE 9 (9.0.8112.16421) and Batik (1.7) all include the transform, producing following:

  matrix(1, 0, 0, 1, 30, 30) 

Webkit (Google Chrome 20.0.1123.4; 536.10 (@115920); Linux) and Opera 11.62 ignore the tranform, producing following:

  matrix(1, 0, 0, 1, 0, 0)

Working example included in attachment.

-- 
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