We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee538b1 commit fcdbf4aCopy full SHA for fcdbf4a
src/dom-to-image.js
@@ -242,6 +242,12 @@
242
if (source.cssText) target.cssText = source.cssText;
243
else copyProperties(source, target);
244
245
+ // Chrome returns fontStretch from getComputedStyle in percent
246
+ // but it does not accept a percent value when using the short hand
247
+ // font = ....
248
+ // Thus we have to reset fontStretch or we lose all our font styles
249
+ target.fontStretch = 'normal';
250
+
251
function copyProperties(source, target) {
252
util.asArray(source).forEach(function (name) {
253
target.setProperty(
0 commit comments