[Webkit-unassigned] [Bug 142805] New: Switching between two SVG images with no intrinsic sizes causes them to get the default SVG size instead of the container size

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 17 17:43:12 PDT 2015


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

            Bug ID: 142805
           Summary: Switching between two SVG images with no intrinsic
                    sizes causes them to get the default SVG size instead
                    of the container size
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (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 248890
  --> https://bugs.webkit.org/attachment.cgi?id=248890&action=review
test case

Open the attached test case. 

Expected: No red color is displayed and the size of the green rectangle should be 300x100 pixels.

Switching from SVG with intrinsic size to an SVG with no intrinsic size or vice versa seems to work as expected.  The problem happens when switching between two images with no-intrisinc sizes back and forth. In this case we use the old layout of the SVG image but we set the SVG size to the default SVG intrinsic size which is 300x150 pixels. In the attached test case, the container size is 300x100 pixels. The old layout can display the SVG in 300x100 pixels. But because we change the image size to be 300x150 pixels, the SVG gets scaled down by (1,100/150).

-- 
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/20150318/1e7d538b/attachment-0002.html>


More information about the webkit-unassigned mailing list