Skip to content

Commit 985cf13

Browse files
committed
Enforce box sizing for 100%-width elements (Fixes #135)
1 parent 68f98df commit 985cf13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code-input.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ code-input textarea, code-input:not(.code-input_pre-element-styled) pre code, co
4040
border: 0;
4141
min-width: calc(100% - var(--padding) * 2);
4242
min-height: calc(100% - var(--padding) * 2);
43+
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. */
4344
overflow: hidden;
4445
resize: none;
4546
grid-row: 1;

0 commit comments

Comments
 (0)