Safari is not respecting scaling applied to a foreignObject

前端 未结 2 1914
执念已碎
执念已碎 2021-01-12 04:42

The following is a strange, and clearly buggy behavior of Safari (tested with versions 11 & 12). A containing HTML, when scaled, still

2条回答
  •  悲哀的现实
    2021-01-12 04:45

    This seems to be related to webkit bug 23113. The only workaround I've found so far is adding a CSS transform: scale(${scale}) (where you'd have to get the current scale using JS) property to a

    inside foreignObject (an example can be found in marpit-svg-polyfill)

提交回复
热议问题