Merge pull request #13131 from ahocevar/unset-canvas
Unset canvas css in stylesheet
This commit is contained in:
@@ -27,7 +27,6 @@ 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 = 'unset';
|
|
||||||
}
|
}
|
||||||
if (opt_width) {
|
if (opt_width) {
|
||||||
canvas.width = opt_width;
|
canvas.width = opt_width;
|
||||||
|
|||||||
@@ -76,6 +76,9 @@
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||||
}
|
}
|
||||||
|
.ol-viewport canvas {
|
||||||
|
all: unset;
|
||||||
|
}
|
||||||
.ol-selectable {
|
.ol-selectable {
|
||||||
-webkit-touch-callout: default;
|
-webkit-touch-callout: default;
|
||||||
-webkit-user-select: text;
|
-webkit-user-select: text;
|
||||||
|
|||||||
Reference in New Issue
Block a user