[x] You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console
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.
The issue seems to be related to the fact that parent element, a <HTML2CANVASPSEUDOELEMENT/> fails to inherit correct styles that are then parsed to the TextContainer when the !important keyword is present.
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: