Change canvas style from initial to unset
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user