Change canvas style from initial to unset

This commit is contained in:
mike-000
2021-09-10 20:18:20 +01:00
committed by GitHub
parent f0b3ce635a
commit e0c15c28dc

View File

@@ -27,7 +27,7 @@ export function createCanvasContext2D(
canvas = new OffscreenCanvas(opt_width || 300, opt_height || 300);
} else {
canvas = document.createElement('canvas');
canvas.style.all = 'initial';
canvas.style.all = 'unset';
}
if (opt_width) {
canvas.width = opt_width;