From e0d1771c6d4758103cd7127e75a1bd8cc3234c89 Mon Sep 17 00:00:00 2001 From: Malvoz <26493779+Malvoz@users.noreply.github.com> Date: Wed, 28 Jul 2021 16:44:23 +0200 Subject: [PATCH] Inherit `box-sizing` (close #350) --- src/web-map.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/web-map.js b/src/web-map.js index a74ad84d3..2a9ae0a9d 100644 --- a/src/web-map.js +++ b/src/web-map.js @@ -130,6 +130,7 @@ export class WebMap extends HTMLMapElement { `width: 300px;` + `border-width: 2px;` + `border-style: inset;` + + `box-sizing: inherit;` + // https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/350#issuecomment-888361985 `}` + `[is="web-map"][frameborder="0"] {` + `border-width: 0;` +