Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<style>
label {
padding: 2px 4px;
display: flex;
flex-flow: column;
background: #ddd;
overflow: hidden;
min-height: 0;
min-width: 0;
width: 80px;
}
input {
flex: 1 1 auto;
margin: 4px;
min-height: 0;
min-width: 0;
-moz-appearance: textfield;
}
</style>
<label>
<input type="number">
</label>