-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Output in scaled foreignObject inside SVG in WebKit doesn't display #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
After more investigation, it seems that spans with "display: inline-block; position: relative;" are not scaled correctly. I reported this bug upstream, with a reduced testcase: https://bugs.webkit.org/show_bug.cgi?id=93358 I guess this is the reason why they don't fit inside the rectangles defined by the "clip" properties. |
Excellent work! Thanks for determining this set of conditions that trigger the problem. I suspect we won't be able to work around that, as both properties are needed. |
=> Removing "Investigate" and setting "Address Later". That seems a Webkit bug that can be hardly avoided. |
The same (even if not really rescaled) happens if one specifies An Example
|
Hi, did this issue evolved since? I am using exactly that kind of code on my blog, and although it renders well on Firefox it does not even appear on Chrome (maybe it is simply out of the visible rectangle). |
This is due to a browser bug, https://bugs.webkit.org/show_bug.cgi?id=93358 which has not been resolved. Filling a separate bug in Blink might be necessary to get a fix into Chrome. |
OK, thanks. |
Causes me a lot of pain too what a crap browser |
If MathJax is rendered inside a
<foreignObject>
tag inside a<g>
with a scaling transformation in an SVG image, then WebKit will not show the math properly (it will not be scaled and is positioned incorrectly, often falling outside the clipping rectangle for the math, so it disappears.See the discussion forum for details.
Example:
The text was updated successfully, but these errors were encountered: