From 985cf1385eaa55e18d3e03391dcfeac4e0e8e675 Mon Sep 17 00:00:00 2001 From: Oliver Geer Date: Tue, 15 Jul 2025 16:07:30 +0100 Subject: [PATCH] Enforce box sizing for 100%-width elements (Fixes #135) --- code-input.css | 1 + 1 file changed, 1 insertion(+) diff --git a/code-input.css b/code-input.css index bd79586..a5fd92a 100644 --- a/code-input.css +++ b/code-input.css @@ -40,6 +40,7 @@ code-input textarea, code-input:not(.code-input_pre-element-styled) pre code, co border: 0; min-width: calc(100% - var(--padding) * 2); min-height: calc(100% - var(--padding) * 2); + box-sizing: content-box; /* Make height, width work consistently no matter the box-sizing of ancestors; dialogs can be styled as wanted so are excluded. */ overflow: hidden; resize: none; grid-row: 1;