-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
the font property can not apply on the image #220
Comments
Same issue +1 ... |
Same issue here. |
Same issue here. It seems that somehow our individual rules like |
Upon further inspection, I think chrome is doing this unintended translation when the cloned node's Running I don't know what can be done to get around this chrome bug. It seems like it is not interpreting the cssText correctly when it is resetting all the style properties in the node's |
I find that if change the code
the problem is fixed. |
|
So when we do |
It looks like the Chrome team actually just became aware of this issue! Someone from BuzzFeed reported it lol. https://bugs.chromium.org/p/chromium/issues/detail?id=850092 |
In case anyone wants this as an npm package feel free to use dom-to-image-chrome-fix while it's getting fixed. I'll deprecate the package again once it is fixed. |
@MDSLKTR thanks for the fix |
It's basicly just @AresP's fix as a npm package :P |
@AresP thank you for the fix! |
Use case: description, code
Expected behavior
the
<span>
tag cssRulesfont-size:40px
andfont-weight:600
is apply on the imageActual behavior (stack traces, console logs etc)
the
<span>
tag didnot applying the cssRulesLibrary version
2.6.0
Browsers
Chrome 67.0.3396.62
it seems a bug of chrome 67
The text was updated successfully, but these errors were encountered: