[Webkit-unassigned] [Bug 219978] New: SVG foreignObject content (seemingly) doesn't get the transform from ancestry tree

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 16 23:08:08 PST 2020


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

            Bug ID: 219978
           Summary: SVG foreignObject content (seemingly) doesn't get the
                    transform from ancestry tree
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bogdan.brinza at hey.com
                CC: zimmermann at kde.org

Created attachment 416393

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

Minimal reduction

Original site issue found on UniFi controller topology map (https://demo.ui.com/manage/site/default/maps/topology - this demo page takes forever to load in Safari btw, instant in Firefox).

Device icons are basically fixed size as you zoom and move around. There is a zoom level where they look good, every other zoom level breaks them.

I'm attaching a minimal reduction that demonstrates the issue - unifi.html and two image Safari-broken.png and Firefox-working.png (it also works in Chromium FWIW).

Looking at the minimal repro almost everything seems like a red herring, the actually important things are:

<g transform="translate(50,50) scale(0.5)"> - a node with a transform in the ancestry chain

<foreignObject width="48" height="48" x="-24" y="-24"> - foreignObject with a specified size 48x48

Observing the result in Safari and Firefox one can notice that both foreignObjects are twice as large in Safari. (Twice as large and 0.5 scale, hmmmmm :-))

To confirm this I've added another CSS rule that applies scale(0.5) directly to the foreignObject first child nodes (see xforeignObject) - if one removes "x" to make a valid rule and reloads in Safari - the rendering will be identical to Firefox.

-- 
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/20201217/cae82884/attachment.htm>


More information about the webkit-unassigned mailing list