[Webkit-unassigned] [Bug 171377] New: SVG does not resize when window height is changed. Ok when width is changed.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 27 07:55:51 PDT 2017


            Bug ID: 171377
           Summary: SVG does not resize when window height is changed. Ok
                    when width is changed.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: macOS 10.12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: petzoto at gmail.com
                CC: zimmermann at kde.org

Created attachment 308389

  --> https://bugs.webkit.org/attachment.cgi?id=308389&action=review

Screen capture of the bug - svg not resized on vertical window resize

When a SVG is placed in a container and the SVG's size is percentage based, it should update its size when the container changes. It fails to do so when the resize is triggered by a vertical size change of the browser window. It works ok when horizontal window size changes.

Steps to Reproduce:
1. Open demo link: http://misc.basta.bg/webkit-svg-bug/ (contains a circle)
2. Resize window by its height ONLY

Expected result:
The circle should resize/realign to fit the window

Actual Result:
The circle doesn't resize/realign.

Tested on the latest webkit nightly:
Version 10.1 (12603., r215857)

Additional Information:
Different scenarios when it is working OK (bug does not occur):
- When you resize window by width
- Make the SVG absolute positioned
- If you change the container size with JS/CSS (not vertical window resize)

Demo code loaded in this pen for easy testing:

I'm also attaching demo of the behavior.

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/20170427/574d59bd/attachment.html>

More information about the webkit-unassigned mailing list