Why does a color input not behave like all other input types when it comes to stretching height in a flexbox container?
In the code example shown below I tried to demonstrate the issue. As you can see all input elements except the one of type color are stretch to an equal height of the strong element.
What is going on and how do I still achieve a "stretched" color input height without using any static height styling values?
.flexRow {
display: flex;
margin: 10px;
}
input {
padding: 0;
overflow: hidden;
}
strong {
padding: 20px 10px;
background-color: #ccc;
}
<div class="flexRow">
<input type="color" />
<strong>Very high element</strong>
</div>
<div class="flexRow">
<input type="submit" />
<strong>Very high element</strong>
</div>
<div class="flexRow">
<input type="text" />
<strong>Very high element</strong>
</div>
This issue occurred to me on Firefox 63 and Chromium 70 on Ubuntu 18.04, please let me know if you don't have this issue with your setup.