Merge pull request #12739 from mike-000/patch-2

Change canvas style from initial to unset
This commit is contained in:
Andreas Hocevar
2021-09-10 21:50:28 +02:00
committed by GitHub
+1 -1
View File
@@ -27,7 +27,7 @@ export function createCanvasContext2D(
canvas = new OffscreenCanvas(opt_width || 300, opt_height || 300); canvas = new OffscreenCanvas(opt_width || 300, opt_height || 300);
} else { } else {
canvas = document.createElement('canvas'); canvas = document.createElement('canvas');
canvas.style.all = 'initial'; canvas.style.all = 'unset';
} }
if (opt_width) { if (opt_width) {
canvas.width = opt_width; canvas.width = opt_width;