[Webkit-unassigned] [Bug 199236] New: Safari is not scaling SVGs with Command+/- zoom when font-size: is used

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 26 15:08:36 PDT 2019


            Bug ID: 199236
           Summary: Safari is not scaling SVGs with Command+/- zoom when
                    font-size: is used
           Product: WebKit
           Version: Safari 12
          Hardware: All
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: apple at winzig.com
                CC: zimmermann at kde.org

I've found that SVGs don't scale in Safari the way they do in the other modern browsers when font-size is specified. It's as if Safari treats font-size on SVGs as an absolute size that cannot be changed. Other browsers don't behave this way, so I assume it's a bug? 

Where this becomes a big problem is with things like Font Awesome, which now offers SVG instead of fonts for it's icon sets. 

Here is a demonstration: https://jsfiddle.net/winzig/3k6x91ha/1/

If you use Command+ and Command- to zoom in and out, the text scales as appropriate, the third home icon does as well (an SVG without font-size set) but the first two SVG icons don't scale no matter what. If you load the same page in Chrome/Firefox/Edge, it works as expected. 

I opened a bug report with Apple a while back (October) that is now in the new feedback system as FB5992037.

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/20190626/68a1ccca/attachment.html>

More information about the webkit-unassigned mailing list