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
[svg] foreignObject
's contents are invisible
#278
Comments
foreignObject
's contents are invisible
@amio Good catch - Preact switches into an SVG mode during rendering, and needs to switch back out of that mode when encountering |
Waiting on a couple more things in order to release this, but it looks like the fix works! |
Lightning fast! 👍 😄 |
Thanks! Hoping to get this released shortly. |
Just ran into this issue whilst using the latest preact-cli. Was a fix added? |
it's been fixed for a while! |
I couldn't figure out why but here is the example code:
https://esnextb.in/?gist=8983fe352fb6664e7f13716af7a12744
the same svg code works in a plain html:
https://jsfiddle.net/leaverou/qwg3r/
More infomation:
style="background-color: yellow"
to<foreignObject />
has correct effectstyle="background-color: yellow"
to foreignObject's children has no effectThe text was updated successfully, but these errors were encountered: