[Webkit-unassigned] [Bug 183237] Nested CSS transforms on SVG elements not updated after page load
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 22 08:02:28 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=183237
--- Comment #2 from Thomas Duvrai <duvrai at me.com> ---
I looked a bit further and found similar bugs in SVG styles, the simplest one being:
<text style="transform: translateX(20%)">
It won't work, while it's fine when using px instead of %. Credit: https://stackoverflow.com/questions/58230668/
But if you apply the style after page load it won't even work with px. A working fix is to wrap the <text> element in a <g> element and apply the transform style there.
More examples in my fiddle:
https://jsfiddle.net/duvrai/pyus1nc9/
--
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/20201222/2bf272d3/attachment.htm>
More information about the webkit-unassigned
mailing list