Skip to content

Commit c72882c

Browse files
authored
Merge pull request #142 from WebCoder49/box-sizing-consistency
Enforce box sizing for 100%-width elements (Fixes #135)
2 parents 68f98df + 985cf13 commit c72882c

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)