Unset canvas css in stylesheet

This commit is contained in:
Andreas Hocevar
2021-12-20 09:57:41 +01:00
parent c75e127734
commit c33adb1035
2 changed files with 3 additions and 1 deletions
-1
View File
@@ -27,7 +27,6 @@ export function createCanvasContext2D(
canvas = new OffscreenCanvas(opt_width || 300, opt_height || 300);
} else {
canvas = document.createElement('canvas');
canvas.style.all = 'unset';
}
if (opt_width) {
canvas.width = opt_width;