[Webkit-unassigned] [Bug 198609] New: WebKit doesn't resize SVG element in response to viewBox change (with height specified and width unspecified)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 6 07:07:33 PDT 2019


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

            Bug ID: 198609
           Summary: WebKit doesn't resize SVG element in response to
                    viewBox change (with height specified and width
                    unspecified)
           Product: WebKit
           Version: Safari 12
          Hardware: Unspecified
                OS: macOS 10.14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dholbert at mozilla.com
                CC: zimmermann at kde.org

STR:
1. Load https://jsfiddle.net/g75rmhz6/
2. Click the button

EXPECTED RESULTS:
The bordered SVG element should shrink to 100x100, so that only green is visible inside of it (no red).

ACTUAL RESULTS:
The bordered SVG element stays the same size. Its contents move around, but its size doesn't change to account for its new aspect ratio (from which its rendered width was derived in the first place).  Red is still visible.


Note: if I open Safari's devtools, then that triggers a relayout and fixes the rendering.

I'm testing with Safari 12 on Mojave.
Chrome version of this bug (Chrome is also affected): https://bugs.chromium.org/p/chromium/issues/detail?id=971647

Firefox has a broader version of the same bug (tracked in https://bugzilla.mozilla.org/show_bug.cgi?id=1556511 ), but I'm landing a patch for it, which includes a WPT test (tentatively called "svg/coordinate-systems/outer-svg-intrinsic-size-001.html"), and Chrome & probably-Safari currently fails the last chunk of that WPT test due to this bug

-- 
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/20190606/fff0b060/attachment.html>


More information about the webkit-unassigned mailing list