Out of curiosity, when capturing the following table using html2canvas
, why does MS Edge generate a ~2.5 times smaller image (in terms of byte array length) than Chrome does?
Is it due to different APIs provided by the browsers or implementation variations on the html2canvas
library side.
Any help or guidance will be appreciated! Thanks!
<table>
<tbody>
<tr data-row="0">
<td data-col="0" data-row="0" data-corner-header="true">
</td>
...
<td data-col="7" data-row="0" data-col-header="6">
<div>G</div>
</td>
</tr>
<tr data-row="1">
<td data-col="0" data-row="1" data-row-header="0">
<div>1</div>
</td>
<td tabindex="0" data-row="1" data-col="1">1.00</td>
...
<td data-row="1" data-col="7" editable="true"></td>
</tr>
...
<tr data-row="10">
<td data-col="0" data-row="10" data-row-header="9">
<div>10</div>
</td>
<td data-row="10" data-col="1" editable="true"></td>
...
<td tabindex="0" data-row="10" data-col="7" title="1.00">1.00</td>
</tr>
</tbody>
Codepen
https://codepen.io/tianyuan-chu/full/ReeGpj/