[Webkit-unassigned] [Bug 148845] New: Previously loaded SVG with no intrinsic size scaled with the viewBox size when drawn on canvas

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 4 16:27:32 PDT 2015


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

            Bug ID: 148845
           Summary: Previously loaded SVG with no intrinsic size scaled
                    with the viewBox size when drawn on canvas
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com
                CC: zimmermann at kde.org

Created attachment 260645
  --> https://bugs.webkit.org/attachment.cgi?id=260645&action=review
test case

Open the attached test case.

Result: Two rectangles are drawn. The first one is 10x10 and the second one is 100x100.
Expected: The two rectangles should have size of 100x100.

Notes:

1. The first rectangle is an <img> tag. Its size is 100x100 and its src is set to a a data uri SVG.
3. The second rectangle is a canvas which loads the same data uri SVG and draws it to a rectangle of 100x100.
2. The SVG does not have an intrinsic size. But it has a viewBox of "0 0 1000 1000".

The bug does not happen with the same test case if any of the following happens:

1. The <img> tag is removed (so the canvas does not get the image resource from the cache).
2. The data uri SVG has an intrinsic size.
3. The viewBox is "0 0 100 100".

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150904/4563995b/attachment-0001.html>


More information about the webkit-unassigned mailing list