-
Notifications
You must be signed in to change notification settings - Fork 4.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
Font families being incorrectly identified. #3160
Comments
html2canvas/src/dom/node-parser.ts Line 22 in 6020386
The issue seems to be related to the fact that parent element, a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please make sure you are testing with the latest release of html2canvas.
Old versions are not supported and issues reported for them will be closed.
Please follow the general troubleshooting steps first:
Bug reports:
The
!important
CSS selector seems to cause unexpected issues when h2c decides which font should be used. Fiddle.When using the following selector to apply a font to all but font-awesome's icons, h2c fails to correctly identify which font should be used to render the icon's
<i/>
tags. This is in contrast to how the DOM correctly applies fonts.Html2Canvas Generated Image without !important
Html2Canvas Generated Image with !important
Specifications:
The text was updated successfully, but these errors were encountered: